Skip to content
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

Conversation

eloots
Copy link
Contributor

@eloots eloots commented Oct 21, 2021

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

@@ -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
Copy link
Member

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)

Copy link
Member

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?

@eloots eloots closed this Oct 29, 2021
@eloots
Copy link
Contributor Author

eloots commented Oct 29, 2021

Closed PR and re-open to trigger Travis build

@eloots eloots reopened this Oct 29, 2021
@eloots eloots force-pushed the clean-up-eliminate-warnings-tackle-deprecations branch from feeaccd to cc74fd5 Compare January 26, 2022 17:49
@mkurz
Copy link
Member

mkurz commented Feb 10, 2022

Hey @eloots can you rebase once more, I finally want to go through all that pull requests tomorrow. Thanks!

@mkurz mkurz force-pushed the clean-up-eliminate-warnings-tackle-deprecations branch from cc74fd5 to 0571d82 Compare April 13, 2023 13:56
- 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 `()`
@mkurz mkurz force-pushed the clean-up-eliminate-warnings-tackle-deprecations branch from 0571d82 to 69ba653 Compare April 30, 2023 07:22
@mergify mergify bot merged commit 982639c into playframework:main Apr 30, 2023
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants