-
Notifications
You must be signed in to change notification settings - Fork 863
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle malformed annotations more gracefully
javac's parser doesn't weed annotations with illegal combinations of assignment and non-assignment expressions, so don't crash when formatting them. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=157855678
- Loading branch information
1 parent
bc94435
commit 9b6d334
Showing
3 changed files
with
12 additions
and
1 deletion.
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
2 changes: 2 additions & 0 deletions
2
core/src/test/resources/com/google/googlejavaformat/java/testdata/B38352414.input
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,2 @@ | ||
@Redacted(Redacted.REDACTED + "/redacted", redacted = Redacted.class) | ||
class B38352414 {} |
2 changes: 2 additions & 0 deletions
2
core/src/test/resources/com/google/googlejavaformat/java/testdata/B38352414.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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@Redacted(Redacted.REDACTED + "/redacted", redacted = Redacted.class) | ||
class B38352414 {} |