Skip to content

Commit b817db6

Browse files
committed
Update code style for ordering things inside classes
1 parent 233674c commit b817db6

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

doc/dev/decisionrecords/Codestyle.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -118,18 +118,15 @@ The provided formatter will group class members in this order:
118118
1. `static` `final` fields
119119
2. `static` fields
120120
3. `static` initializer
121-
4. `final` fields
122-
5. fields
123-
6. class initializer (avoid using it)
124-
7. Constructor
125-
8. `static` methods
126-
9. `static` getter and setters
127-
10. methods
128-
11. getter and setters
129-
12. enums
130-
13. interfaces
131-
14. `static` classes
132-
15. classes
121+
4. other fields
122+
5. class initializer (avoid using it)
123+
6. Constructor
124+
7. methods
125+
8. getter and setters
126+
9. enums
127+
10. interfaces
128+
11. `static` classes
129+
12. classes
133130
5. Each section of members are sorted by visibility:
134131
1. ´public´
135132
2. package private

0 commit comments

Comments
 (0)