Skip to content

Polish for 2640 - Reordering 'static' and 'final' modifiers #2644

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

Closed
wants to merge 2 commits into from

Conversation

jxblum
Copy link
Contributor

@jxblum jxblum commented Jul 17, 2023

See #2640

Additionally, and more generally, for the changed classes, I also applied Java 17 syntax where applicable, cleaned up compiler warnings and edited Javadoc.

Per the Java Language Specification (Java 17; https://docs.oracle.com/javase/specs/jls/se17/html/jls-8.html#jls-8.3.1), 'static' should appear before 'final'.

This is also consistent with source code analysis tools, like Checkstyle, rules: https://checkstyle.sourceforge.io/apidocs/com/puppycrawl/tools/checkstyle/checks/modifier/ModifierOrderCheck.html.

See spring-projects#2640
@jxblum jxblum requested a review from mp911de July 17, 2023 20:46
@jxblum jxblum changed the title Polish for 2640 - reordering 'static' and 'final' modifiers Polish for 2640 - Reordering 'static' and 'final' modifiers Jul 17, 2023
Additionally, applied Java 17 syntax, cleaned up compiler warnings, and edited Javadoc.

Closes spring-projects#2644
Original pull request: spring-projects#2640
mp911de pushed a commit that referenced this pull request Jul 18, 2023
Additionally, applied Java 17 syntax, cleaned up compiler warnings, and edited Javadoc.

Closes #2644
Original pull request: #2640
@mp911de mp911de added the type: task A general task label Jul 18, 2023
mp911de added a commit that referenced this pull request Jul 18, 2023
Make fields final where possible. Reintroduce end of line comment markers to avoid reformatting into unreadable format. Replace HashSet per command instance with String to reduce memory footprint.

Tweak Javadoc wording to represent what we actually expect. Reorder methods.

See #2640
Original pull request: #2644
@mp911de mp911de closed this in ce8b857 Jul 18, 2023
mp911de added a commit that referenced this pull request Jul 18, 2023
Make fields final where possible. Reintroduce end of line comment markers to avoid reformatting into unreadable format. Replace HashSet per command instance with String to reduce memory footprint.

Tweak Javadoc wording to represent what we actually expect. Reorder methods.

See #2640
Original pull request: #2644
mp911de pushed a commit that referenced this pull request Jul 18, 2023
Additionally, applied Java 17 syntax, cleaned up compiler warnings, and edited Javadoc.

Closes #2644
Original pull request: #2640
mp911de added a commit that referenced this pull request Jul 18, 2023
Make fields final where possible. Reintroduce end of line comment markers to avoid reformatting into unreadable format. Replace HashSet per command instance with String to reduce memory footprint.

Tweak Javadoc wording to represent what we actually expect. Reorder methods.

See #2640
Original pull request: #2644
@mp911de mp911de added this to the 3.0.9 (2022.0.9) milestone Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants