Skip to content

Commit

Permalink
Update code style for ordering things inside classes
Browse files Browse the repository at this point in the history
  • Loading branch information
optionsome committed Oct 8, 2024
1 parent 233674c commit b817db6
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions doc/dev/decisionrecords/Codestyle.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,18 +118,15 @@ The provided formatter will group class members in this order:
1. `static` `final` fields
2. `static` fields
3. `static` initializer
4. `final` fields
5. fields
6. class initializer (avoid using it)
7. Constructor
8. `static` methods
9. `static` getter and setters
10. methods
11. getter and setters
12. enums
13. interfaces
14. `static` classes
15. classes
4. other fields
5. class initializer (avoid using it)
6. Constructor
7. methods
8. getter and setters
9. enums
10. interfaces
11. `static` classes
12. classes
5. Each section of members are sorted by visibility:
1. ´public´
2. package private
Expand Down

0 comments on commit b817db6

Please sign in to comment.