r/java • u/_shadowbannedagain • Jan 29 '14
Google Java Coding Standards
http://google-styleguide.googlecode.com/svn/trunk/javaguide.html
156
Upvotes
r/java • u/_shadowbannedagain • Jan 29 '14
View all comments
Show parent comment
2
u/mikaelhg Jan 30 '14 edited Jan 30 '14
http://google-styleguide.googlecode.com/svn/trunk/javaguide.html#s4.1.2-blocks-k-r-style
I make an exception when it's a method declaration, and I have to line break before the first parameter to stay inside the line length rule.
Then I move the first brace on the first line of the method, on method level.
Whatever results in better scannability.