-
Notifications
You must be signed in to change notification settings - Fork 0
[picnic] Add StreamRulesRecipes
#13
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
base: main
Are you sure you want to change the base?
Conversation
| * @param clazz the class to check; never {@code null} | ||
| * @return {@code true} if the class is {@code public} | ||
| * @see java.lang.reflect.Modifier#isPublic(int) | ||
| * @see Modifier#isPublic(int) |
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.
only this unrelated change is quite impressive having a very modern codebase.
Changes have been made to junit-platform-commons/src/main/java/org/junit/platform/commons/support/ModifierSupport.java by:
org.openrewrite.java.migrate.UpgradeToJava17
org.openrewrite.java.migrate.RemovedModifierAndConstantBootstrapsConstructors
org.openrewrite.java.ChangeMethodTargetToStatic: {methodPattern=java.lang.reflect.Modifier *(..), fullyQualifiedTargetTypeName=java.lang.reflect.Modifier}
76d6a50 to
e5ce836
Compare
...ooling-support-tests/src/test/java/platform/tooling/support/tests/ModularUserGuideTests.java
Show resolved
Hide resolved
e5ce836 to
ff14a5c
Compare
StreamRulesRecipesStreamRulesRecipes
| apply(from = "gradle/rewrite.gradle") | ||
|
|
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.
Apply from is an anti-pattern, and JUnit bundles build plugins under https://github.com/Pankraz76/junit5/tree/main/gradle/plugins
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.
Yes, thanks for the update. I can see where this is going, but I currently don’t have any idea how to fix it.
Can we handle this later, or could someone else please add it?
I’ve seen a similar approach from Elastic — it’s quite nice and straightforward, almost just a copy-and-paste calling the same API in the code configuration, like from a Gradle file.
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.
imho this is not possible yet right? as the api does not offer rewrite, yet...
junit-platform-commons/src/main/java/org/junit/platform/commons/util/CollectionUtils.java
Outdated
Show resolved
Hide resolved
b6199e1 to
9ac0045
Compare
Changes have been made to junit-platform-commons/src/main/java/org/junit/platform/commons/support/ModifierSupport.java by:
org.openrewrite.java.migrate.UpgradeToJava17
org.openrewrite.java.migrate.RemovedModifierAndConstantBootstrapsConstructors
org.openrewrite.java.ChangeMethodTargetToStatic: {methodPattern=java.lang.reflect.Modifier *(..), fullyQualifiedTargetTypeName=java.lang.reflect.Modifier}
Signed-off-by: Vincent Potucek <[email protected]>
9ac0045 to
0af17df
Compare
rewritesupport forerrorprone.refasterrulesjunit-team/junit-framework#5002I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
@APIannotations