-
Notifications
You must be signed in to change notification settings - Fork 71
Reordering Annotations #544
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
a7188bd
to
c25c65b
Compare
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.
Some suggestions could not be made:
- src/main/resources/META-INF/rewrite/examples.yml
- lines 1230-1249
- lines 1282-1281
- lines 2311-2310
- lines 2326-2338
- lines 2435-2434
src/test/java/org/openrewrite/staticanalysis/ReorderAnnotationsTest.java
Show resolved
Hide resolved
src/test/java/org/openrewrite/staticanalysis/ReorderAnnotationsTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/openrewrite/staticanalysis/ReorderAnnotationsTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/openrewrite/staticanalysis/ReorderAnnotationsTest.java
Outdated
Show resolved
Hide resolved
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.
Some suggestions could not be made:
- src/main/resources/META-INF/rewrite/examples.yml
- lines 636-652
- lines 698-697
- lines 2311-2310
- lines 2326-2338
- lines 2435-2434
src/test/java/org/openrewrite/staticanalysis/ReorderAnnotationsTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/openrewrite/staticanalysis/ReorderAnnotationsTest.java
Outdated
Show resolved
Hide resolved
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.
Some suggestions could not be made:
- src/main/resources/META-INF/rewrite/examples.yml
- lines 636-652
- lines 698-697
- lines 2311-2310
- lines 2326-2338
- lines 2435-2434
Reordering annotations (alphabetically only for now on method declarations alone).
Looking to define boundaries for what should be included in the changes for annotation reordering. As per the linked issue, the starting point would be a default alphabetical ordering of annotations (the ability to pass in what
Comparator<J.Annotation>
to use will be upcoming). It's been suggested to start with just method declarations and move on from there after, but I'm open to thoughts and suggestions.What's changed?
ReorderAnnotations
recipe for reordering annotations (default alphabetic) onJ.MethodDeclaration
Related issue with additional fixes that should be implemented first
Anyone you would like to review specifically?
@timtebeek
@greg-at-moderne
Checklist
Comparator<J.Annotation>
you would like to use to sort the annotations on a given LST entry point