Skip to content

Conversation

@Pankraz76
Copy link
Owner

Prerequisite org.openrewrite.java.migrate.lang.var.UseVarFor... hibernate#11446

[Please describe here what your change is about]


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


recipeList:
- org.openrewrite.staticanalysis.EqualsAvoidsNull
# - org.openrewrite.java.migrate.lang.var.UseVarForGenericMethodInvocations # bug;
# - org.openrewrite.java.migrate.lang.var.UseVarForGenericsConstructors # 700 changes...
Copy link
Owner Author

Choose a reason for hiding this comment

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

Kindly asking if this is something to consider? @gavinking

I am wondering whether applying this change at scale would end up impacting performance levels in any meaningful or beneficial way, or how it actually plays out in practice.

It seems like it would align the codebase very well when applied consistently.

The use of var is also being seen in other projects, like junit:

@gavinking
Copy link

No, we're not interested. And this is exactly the sort of pull request in which it's easy to hide a supply chain attack.

@Pankraz76
Copy link
Owner Author

No, we're not interested. And this is exactly the sort of pull request in which it's easy to hide a supply chain attack.

Thanks for feedback.

What you mean with attack? To sneak something in? By me or the plugin?

Its just some dome and the changes are up to you to recreate and merge in your own if needed.

This plugin and recipe and active in checkstyle and the rule covered by checkstyle as well is active in junit so idk exactly where the issue is.

Thanks for considering.

@Pankraz76
Copy link
Owner Author

spotless is outdated in the current state, despite the major update there are not changes. Might still be worth update and check dependabot.

@Pankraz76
Copy link
Owner Author

kindly asking where the attack is now?

the codebase is well formatted, having achieved conventional principle.

Thanks. @gavinking

@Pankraz76 Pankraz76 marked this pull request as ready for review December 16, 2025 15:21
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