-
Notifications
You must be signed in to change notification settings - Fork 285
[1431] Upgrade codebase to Java 17 language features #1421
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
[1431] Upgrade codebase to Java 17 language features #1421
Conversation
Tested after rebasing onto main, and got no error so far issuing a
I can see this message when building though:
And wondering if we could get rid of the option from the pom file: |
I'd say yes, we are building the main branch with java 17 +, so it's ignored anyways no? |
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.
Just one potentially useless "string".formatted() caught my eyes, apart from that LGTM.
I'd have expected more code rewrite patterns in the diff, but discovered some things I was not aware of already.
geowebcache/core/src/main/java/org/geowebcache/config/XMLConfiguration.java
Outdated
Show resolved
Hide resolved
yes, it did not harm my compilation at least |
bf649f9
to
a53ecfa
Compare
a53ecfa
to
0d7f8b7
Compare
Does not compile, updating to the latest main will fix it, in particular this commit:
|
``` mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \ -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-migrate-java:RELEASE \ -Drewrite.activeRecipes=org.openrewrite.java.migrate.UpgradeToJava17 \ -Drewrite.exportDatatables=true ```
…ded by the recipe
0d7f8b7
to
5b0b35f
Compare
@aaime thanks, all working after rebasing |
Had a look at the PR, everything looks fine to me, good to merge IMHO. |
Fixes #1431