You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it is a bug. Part of the point of in-line mode annotations (vs.
vertical mode annotations) is supposed to be no longer forcing extra line
breaks.
The formatter cannot always tell whether an annotation is a type annotation
or not. It will have to use a pretty gross heuristic. But for now, Google
isn't on Java 8 yet, so it's going to always assume they are not type
annotations (because they can't be), but of course it won't go so far as to
physically move them before the modifiers, so that people in your situation
won't get annoyed. At some point we will have to turn that on and, well,
Liam could show you the proposal for how to guess at whether something is a
type annotation or not...
On Fri, May 15, 2015 at 7:06 AM, Kevin Bourrillion kevinb@google.com
wrote:
I think it is a bug. Part of the point of in-line mode annotations (vs.
vertical mode annotations) is supposed to be no longer forcing extra line
breaks.
All known badness with blank lines around annotated field declarations has been fixed by fb109b9, so please file bugs if you see other issues with that.
Activity
kevinb9n commentedon May 15, 2015
I think it is a bug. Part of the point of in-line mode annotations (vs.
vertical mode annotations) is supposed to be no longer forcing extra line
breaks.
On Fri, May 15, 2015 at 7:00 AM, Jesse Wilson notifications@github.com
wrote:
Kevin Bourrillion | Java Librarian | Google, Inc. | kevinb@google.com
kevinb9n commentedon May 15, 2015
Note there is a slight wrinkle, though.
The formatter cannot always tell whether an annotation is a type annotation
or not. It will have to use a pretty gross heuristic. But for now, Google
isn't on Java 8 yet, so it's going to always assume they are not type
annotations (because they can't be), but of course it won't go so far as to
physically move them before the modifiers, so that people in your situation
won't get annoyed. At some point we will have to turn that on and, well,
Liam could show you the proposal for how to guess at whether something is a
type annotation or not...
On Fri, May 15, 2015 at 7:06 AM, Kevin Bourrillion kevinb@google.com
wrote:
Kevin Bourrillion | Java Librarian | Google, Inc. | kevinb@google.com
cushon commentedon May 16, 2015
I created #5 to track possible heuristics for type annotations.
I'm working on a fix for this issue that will suppress the blank lines unless the annotations end up being formatted vertically.
cushon commentedon Aug 26, 2015
a7cd9c5 was buggy, and would do things like format:
into:
All known badness with blank lines around annotated field declarations has been fixed by fb109b9, so please file bugs if you see other issues with that.
Merge pull request #1 from google/master