-
Notifications
You must be signed in to change notification settings - Fork 857
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
Need empty line before first member definition of a class #476
Comments
The Google Java Style says:
(Source: https://google.github.io/styleguide/javaguide.html#s4.6.1-vertical-whitespace) so it looks like google-java-format works as expected here, or at least it's not wrong. |
We often still have the formatter standardize on a single choice anyway, but in this case we decided not to. There are big long hairy signatures for which it really helps to use a blank line after; whereas the second snippet above shows why a policy of always using the blank line is sad. |
Thank you all for the comments. How do you consider the consistency? Essentially same java source files, generated difference output, though trivial? |
It's ugly & not neat to have that 2 empty lines. |
Thanks for your great work. I works well except some inconsistent output,
The output of following two java code are supposed to be same, but actually not, the both output the same as input.
I've tested this with version 1.8 and 1.7.
The text was updated successfully, but these errors were encountered: