-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Never put field annotations on the same line as the field declaration.
- Loading branch information
1 parent
4e8670d
commit 615b7a3
Showing
9 changed files
with
66 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type: improvement | ||
improvement: | ||
description: Never put field annotations on the same line as the field declaration. | ||
links: | ||
- https://github.com/palantir/palantir-java-format/pull/102 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...tir-java-format/src/test/resources/com/palantir/javaformat/java/testdata/B20577626.output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 9 additions & 3 deletions
12
...tir-java-format/src/test/resources/com/palantir/javaformat/java/testdata/B21465477.output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
class B21465477 { | ||
|
||
@Nullable private final String simpleFieldName; | ||
@Nullable private final String shortFlagName; | ||
@Nullable | ||
private final String simpleFieldName; | ||
|
||
@Nullable | ||
private final String shortFlagName; | ||
|
||
private final String containerClassName; | ||
private final String type; | ||
private final String doc; | ||
private final DocLevel docLevel; | ||
@Nullable private final String altName; | ||
|
||
@Nullable | ||
private final String altName; | ||
} |
20 changes: 14 additions & 6 deletions
20
...tir-java-format/src/test/resources/com/palantir/javaformat/java/testdata/B24702438.output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
palantir-java-format/src/test/resources/com/palantir/javaformat/java/testdata/I13.output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
class I13 { | ||
|
||
@Nullable public int f; | ||
@Nullable | ||
public int f; | ||
|
||
@Override | ||
public void m() {} | ||
|