-
Notifications
You must be signed in to change notification settings - Fork 861
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a crash on c-style arrays in parameters
Fixes #374 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=286467734
- Loading branch information
Showing
3 changed files
with
22 additions
and
2 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
9 changes: 9 additions & 0 deletions
9
core/src/test/resources/com/google/googlejavaformat/java/testdata/I374.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,9 @@ | ||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Target; | ||
|
||
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) | ||
@interface MyTypeAnno {} | ||
|
||
public class GjfFailure { | ||
void m(int a @MyTypeAnno []) {} | ||
} |
9 changes: 9 additions & 0 deletions
9
core/src/test/resources/com/google/googlejavaformat/java/testdata/I374.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,9 @@ | ||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Target; | ||
|
||
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) | ||
@interface MyTypeAnno {} | ||
|
||
public class GjfFailure { | ||
void m(int a @MyTypeAnno []) {} | ||
} |