New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up eliminate warnings tackle deprecations #11001
Clean up eliminate warnings tackle deprecations #11001
Conversation
core/play-guice/src/main/scala/play/api/inject/guice/GuiceInjectorBuilder.scala
Outdated
Show resolved
Hide resolved
@@ -17,7 +17,8 @@ static Binder binder(Object module) { | |||
if (module instanceof AbstractModule) { | |||
try { | |||
Method method = AbstractModule.class.getDeclaredMethod("binder"); | |||
if (!method.isAccessible()) { | |||
if (!method.isAccessible()) { // Fixme: remove this deprecated method. Use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a hook to create issues on //TODO
///Fixme
comments? If not, we might consider adding it (or just opening issues for these notations)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe there is a GitHub action for that?
Closed PR and re-open to trigger Travis build |
feeaccd
to
cc74fd5
Compare
Hey @eloots can you rebase once more, I finally want to go through all that pull requests tomorrow. Thanks! |
cc74fd5
to
0571d82
Compare
- Switch scala.collection.JavaConverters to scala.jdk.CollectionConverters - Remove unnecessary func(scala.Function1)
- Switch: scala.collection.JavaConverters to scala.jdk.CollectionConverters scala.compat.java8.OptionConverters to scala.jdk.OptionConverters - Switch `toIterator` to `iterator` - `mapValues` should be applied on a `view`
- Switch deprecated Scala `Stream` to `LazyList` - `mapValues` should be applied on a `view` - As `Either` is now right biased, apply changes accordingly - Use `compare.sign` instead if `compare.signum` - Replace concatenation using `+` of Strings (incl. implicit conversions to strings) with string interpolation - Remove `Traversable`. Replace with `Iterable` - Replace 'symbol syntax with explicit calls to `Symbol` - Switch: scala.collection.JavaConverters to scala.jdk.CollectionConverters scala.compat.java8.OptionConverters to scala.jdk.OptionConverters - Fix utilisation of deprecated auto-application to `()` - Switch `toIterator` to `iterator`
- Switch: scala.collection.JavaConverters to scala.jdk.CollectionConverters scala.compat.java8.OptionConverters to scala.jdk.OptionConverters - Fix utilisation of deprecated auto-application to `()`
0571d82
to
69ba653
Compare
Pull Request Checklist
Helpful things
Fixes
Fixes #xxxx
Purpose
Compiling the codebase with Scala 2.13.5 generates a ton of warnings. This PR eliminates a lot of them (but not all).
Background Context
Maintaining a project with that many warnings isn't right.
References