Community
Participate
Working Groups
I think the default for this option should also be 1 instead of 0.
Where did you find such information? I have to admit that the Java conventions are not very verbose. Looking at classes in the core libraries I could not find what should be the default value. Sometimes there is a blank line, sometimes not.
Well, I did not look at the guidelines before posting *smiles sheepishly* I've found "One blank line should always be used in the following circumstances: {snip} Before a block (see section 5.1.1) or single-line (see section 5.1.2) comment" (http://java.sun.com/docs/codeconv/html/CodeConventions.doc7.html#475 ) though. A "well written" (read: documented) class will have a comment before fields/methods/constructors: class Test { /** Constructor comment */ Test() { } } class Test { /** Field comment */ int a; } interface Test { /** Method comment */ void m(); } Exceptions--not having a preceding comment--would be initializers or private methods (if doc not required by style guide): class Test { { //test } } @@@@ It feels awkward to me, being a "consistency" guy, if all my fields and methods are preceded by a blank _but_ the ones right after the opening brace.
Ok, good enough. I will set the default value to 1. Need to update the tests. When everything is ready, I will release.
Fixed and released in HEAD.
Verified for 3.0-M7 with build I200402102000.
Regression in: Version: 3.1.0 Build id: 200412142000
What is the regression?
Closing as FIXED since the requested information was never provided.