Skip to content

Conversation

}

private static @Nullable Tree suppressibleNode(TreePath path, VisitorState state) {
return StreamSupport.stream(path.spliterator(), false)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there is interest in using (a subset of) our Refaster rules, IMO it'd make more sense to directly import them from Error Prone Support, instead of going via OpenRewrite.

CC: @Stephan202

</dependency>
<dependency>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

java migration

Copy link
Collaborator

@cushon cushon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Were all of the changes in this PR generated by openrewrite using the rewrite.yml config you added?

Some of them look unrelated, like the formatting changes to the pom.xml files and some of the Java files.

@Pankraz76
Copy link
Author

Pankraz76 commented Nov 10, 2025

yes sorry its all related to some individual recipe.

Im going to supplement and extract to make it transparent and mergeable.

Thank you.

Copy link
Contributor

@rickie rickie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some thoughts :)

rewrite.yml Outdated
displayName: Apply Java & Maven best practices
description: Comprehensive code quality recipe combining modernization, security, and best practices.
recipeList:
- org.openrewrite.java.RemoveUnusedImports
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There already exists an Error Prone check for this.

Copy link
Author

@Pankraz76 Pankraz76 Nov 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, also all tools have bugs and or different perspectives, never say never.

rewrite.yml Outdated
recipeList:
- org.openrewrite.java.RemoveUnusedImports
- org.openrewrite.java.format.NormalizeLineBreaks
- org.openrewrite.java.format.RemoveTrailingWhitespace
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would say this cannot occur given the use of Google Java Format.

Copy link
Author

@Pankraz76 Pankraz76 Nov 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, also all tools have bugs and or different perspectives, never say never.

spot uses google or palant which is google. (zero trust principle)

@Pankraz76 Pankraz76 changed the title [openrewrite] initial merge and Java8toJava11 [rewrite] Add Java8toJava11 Nov 10, 2025
@Pankraz76 Pankraz76 requested review from cushon and rickie November 10, 2025 17:33
Signed-off-by: Vincent Potucek <vpotucek@me.com>
@Pankraz76
Copy link
Author

Some thoughts :)

always helpful and welcome.

Let me know if something to adjust, kind regards.

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.

3 participants