├── core
└── src
│ ├── test
│ └── resources
│ │ └── com
│ │ └── google
│ │ └── googlejavaformat
│ │ └── java
│ │ ├── testdata
│ │ ├── M2.output
│ │ ├── M2.input
│ │ ├── B20524742.input
│ │ ├── B23626035.input
│ │ ├── B21327412.input
│ │ ├── B28786284.input
│ │ ├── B28786284.output
│ │ ├── B20524742.output
│ │ ├── B21327412.output
│ │ ├── B23626035.output
│ │ ├── B22424362.output
│ │ ├── B32729600.input
│ │ ├── B32729600.output
│ │ ├── Fields.output
│ │ ├── UnaryMinus.input
│ │ ├── UnaryMinus.output
│ │ ├── B19950468.input
│ │ ├── B19950468.output
│ │ ├── B21585653.output
│ │ ├── EnumAnnotation.input
│ │ ├── Fields.input
│ │ ├── i101.input
│ │ ├── i101.output
│ │ ├── i95.input
│ │ ├── i95.output
│ │ ├── B25811323.input
│ │ ├── B21585653.input
│ │ ├── B25749989.input
│ │ ├── B28774859.output
│ │ ├── B35797074.input
│ │ ├── B22424362.input
│ │ ├── B25811323.output
│ │ ├── B28774859.input
│ │ ├── B28788559.input
│ │ ├── B35797074.output
│ │ ├── EnumAnnotation.output
│ │ ├── B21185365.input
│ │ ├── B21185365.output
│ │ ├── B24494875.input
│ │ ├── B24494875.output
│ │ ├── B28788559.output
│ │ ├── ForMany.input
│ │ ├── ForMany.output
│ │ ├── B38352414.input
│ │ ├── i155.input
│ │ ├── i155.output
│ │ ├── B25749989.output
│ │ ├── B30789352.input
│ │ ├── B30789352.output
│ │ ├── B38203081.input
│ │ ├── B38352414.output
│ │ ├── I13.output
│ │ ├── B36194204.input
│ │ ├── B36194204.output
│ │ ├── B38203081.output
│ │ ├── WildBound.input
│ │ ├── B26159561.input
│ │ ├── B32284705.input
│ │ ├── B32284705.output
│ │ ├── WildBound.output
│ │ ├── I202.input
│ │ ├── I202.output
│ │ ├── M3.input
│ │ ├── M3.output
│ │ ├── CL240367479.input
│ │ ├── B26159561.output
│ │ ├── CL240367479.output
│ │ ├── I13.input
│ │ ├── B27246427.input
│ │ ├── B29705613.input
│ │ ├── i176.input
│ │ ├── MarkerAnnotation.input
│ │ ├── MarkerAnnotation.output
│ │ ├── i65.input
│ │ ├── i65.output
│ │ ├── B22469536.input
│ │ ├── B22469536.output
│ │ ├── B29705613.output
│ │ ├── SingleMemberAnnotation.input
│ │ ├── SingleMemberAnnotation.output
│ │ ├── i176.output
│ │ ├── i98.output
│ │ ├── B21105569.input
│ │ ├── I12.output
│ │ ├── B32397217.input
│ │ ├── LocalAnnotations.input
│ │ ├── i66.output
│ │ ├── i100.input
│ │ ├── i281.input
│ │ ├── i66.input
│ │ ├── i98.input
│ │ ├── B20128921.input
│ │ ├── B27246427.output
│ │ ├── i100.output
│ │ ├── B20128921.output
│ │ ├── B32397217.output
│ │ ├── java11.input
│ │ ├── java11.output
│ │ ├── B21031147.input
│ │ ├── B21105569.output
│ │ ├── B23514513.input
│ │ ├── I365.output
│ │ ├── LocalAnnotations.output
│ │ ├── B38241237.input
│ │ ├── B23514513.output
│ │ ├── i221.input
│ │ ├── i221.output
│ │ ├── B21647014.input
│ │ ├── i71.output
│ │ ├── B19950219.input
│ │ ├── B20128174.input
│ │ ├── B29618429.input
│ │ ├── B38241237.output
│ │ ├── B21031147.output
│ │ ├── I12.input
│ │ ├── i60.output
│ │ ├── B19950219.output
│ │ ├── B29618429.output
│ │ ├── B30764810.input
│ │ ├── B19996259.input
│ │ ├── B22913048.input
│ │ ├── B24862959.output
│ │ ├── B72507902.input
│ │ ├── I365.input
│ │ ├── i60.input
│ │ ├── B154342628.input
│ │ ├── B154342628.output
│ │ ├── B22610221.output
│ │ ├── B22913048.output
│ │ ├── B32114928.output
│ │ ├── B126411718.output
│ │ ├── B27602933.input
│ │ ├── Unformatted3.input
│ │ ├── B24862959.input
│ │ ├── B26275739.output
│ │ ├── B27602933.output
│ │ ├── B72507902.output
│ │ ├── Unformatted3.output
│ │ ├── B30764810.output
│ │ ├── I374.input
│ │ ├── B21647014.output
│ │ ├── B22488373.output
│ │ ├── B20577626.output
│ │ ├── Pair.input
│ │ ├── Pair.output
│ │ ├── i59.input
│ │ ├── B32114928.input
│ │ ├── I374.output
│ │ ├── B19996259.output
│ │ ├── B21329312.input
│ │ ├── B22848286.input
│ │ ├── L.input
│ │ ├── i55.output
│ │ ├── i59.output
│ │ ├── L.output
│ │ ├── i281.output
│ │ ├── i55.input
│ │ ├── B124394008.input
│ │ ├── B126411718.input
│ │ ├── B20577626.input
│ │ ├── B21329312.output
│ │ ├── i282.input
│ │ ├── W.input
│ │ ├── B22610221.input
│ │ ├── B26928842.input
│ │ ├── W.output
│ │ ├── V.input
│ │ ├── V.output
│ │ ├── B22848286.output
│ │ ├── B26928842.output
│ │ ├── B20915776.input
│ │ ├── B20915776.output
│ │ ├── B24988078.input
│ │ ├── B26275739.input
│ │ ├── i282.output
│ │ ├── B22169269.output
│ │ ├── i71.input
│ │ ├── B124394008.output
│ │ ├── B24988078.output
│ │ ├── B21465477.input
│ │ ├── B22169269.input
│ │ ├── B21465477.output
│ │ ├── B22488373.input
│ │ ├── B30153869.input
│ │ ├── R.input
│ │ ├── R.output
│ │ ├── B20128174.output
│ │ ├── B30153869.output
│ │ ├── Q.input
│ │ ├── B112853497.output
│ │ ├── Q.output
│ │ ├── B.output
│ │ ├── B37895033.output
│ │ ├── TabularMixedSignInitializer.input
│ │ ├── TabularMixedSignInitializer.output
│ │ ├── B142553964.input
│ │ ├── B142553964.output
│ │ ├── B112853497.input
│ │ ├── B.input
│ │ ├── B23708487.input
│ │ ├── B19950815.input
│ │ ├── B37895033.input
│ │ ├── B20578077.output
│ │ ├── B33358723.input
│ │ ├── B20578077.input
│ │ ├── B20531711.input
│ │ ├── B23708487.output
│ │ ├── B27078833.output
│ │ ├── B27078833.input
│ │ ├── B21465217.input
│ │ ├── B19950815.output
│ │ ├── Multivariables.output
│ │ ├── B20531711.output
│ │ ├── B21465217.output
│ │ ├── Multivariables.input
│ │ ├── B21331232.output
│ │ ├── B33358723.output
│ │ ├── B21331232.input
│ │ ├── B20567842.input
│ │ ├── B20580212.input
│ │ ├── B21278211.output
│ │ ├── B64493529.input
│ │ ├── B64493529.output
│ │ ├── B65214682.input
│ │ ├── B65214682.output
│ │ ├── B22873322.input
│ │ ├── T.input
│ │ ├── T.output
│ │ ├── B20580212.output
│ │ ├── N.input
│ │ ├── B20567842.output
│ │ ├── B20529113.input
│ │ ├── B23349153.input
│ │ ├── SuperQualifier.input
│ │ ├── P.input
│ │ ├── SuperQualifier.output
│ │ ├── Unformatted2.input
│ │ ├── Unformatted2.output
│ │ ├── B23349153.output
│ │ ├── B21278211.input
│ │ ├── B37629610.output
│ │ ├── B37629610.input
│ │ ├── B20529113.output
│ │ ├── B26694550.output
│ │ ├── B35644813.output
│ │ ├── B21192435.input
│ │ ├── B26694550.input
│ │ ├── B35644813.input
│ │ ├── NormalAnnotation.input
│ │ ├── NormalAnnotation.output
│ │ ├── TryWithResources.input
│ │ ├── TryWithResources.output
│ │ ├── B18479811.input
│ │ ├── B22873322.output
│ │ ├── M1.input
│ │ ├── B21192435.output
│ │ ├── B22166687.input
│ │ ├── P.output
│ │ ├── B28066276.input
│ │ ├── B22166687.output
│ │ ├── B20569245.output
│ │ ├── N.output
│ │ ├── D.input
│ │ ├── D.output
│ │ ├── B20569245.input
│ │ ├── B20844369.input
│ │ ├── B30223986.output
│ │ ├── B29368546.output
│ │ ├── M1.output
│ │ ├── B29368546.input
│ │ ├── B30223986.input
│ │ ├── B20844369.output
│ │ ├── java14.output
│ │ ├── java14.input
│ │ ├── B26952926.input
│ │ ├── B24202287.output
│ │ ├── B25787055.output
│ │ ├── B28066276.output
│ │ ├── B25372815.input
│ │ ├── B25372815.output
│ │ ├── B26293162.input
│ │ ├── B18479811.output
│ │ ├── B26952926.output
│ │ ├── B24202287.input
│ │ ├── B26293162.output
│ │ ├── B25787055.input
│ │ ├── S.input
│ │ ├── S.output
│ │ ├── B24702438.input
│ │ ├── I1.input
│ │ ├── I1.output
│ │ ├── B24702438.output
│ │ ├── B23804934.input
│ │ ├── B22815364.input
│ │ ├── B21305044.input
│ │ ├── U.input
│ │ ├── B23804934.output
│ │ ├── U.output
│ │ ├── B21954779.input
│ │ ├── B23749160.output
│ │ ├── B26884608.output
│ │ ├── B24543625.output
│ │ ├── B21954779.output
│ │ ├── B26884608.input
│ │ ├── B23749160.input
│ │ ├── B22815364.output
│ │ ├── I.input
│ │ └── I.output
│ │ ├── testjavadoc
│ │ ├── B31404367.input
│ │ └── B31404367.output
│ │ └── testimports
│ │ ├── A.imports-only
│ │ ├── A.imports-and-formatting
│ │ ├── A.formatting-only
│ │ ├── A.input
│ │ ├── A.formatting-and-unused-import-removal
│ │ └── A.formatting-and-import-sorting
│ └── main
│ └── java
│ └── com
│ └── google
│ └── googlejavaformat
│ ├── java
│ ├── GoogleJavaFormatVersion.java.template
│ └── javadoc
│ │ └── NestingCounter.java
│ ├── CommentsHelper.java
│ ├── Op.java
│ ├── FormattingError.java
│ ├── CloseOp.java
│ └── OpenOp.java
├── .gitignore
├── util
├── settings.xml
└── publish-snapshot-on-commit.sh
├── eclipse_plugin
├── build.properties
├── plugin.xml
├── META-INF
│ └── MANIFEST.MF
└── README.md
├── scripts
└── mvn-deploy.sh
├── appveyor.yml
├── idea_plugin
├── google-java-format.iml
├── build.gradle
└── src
│ └── com
│ └── google
│ └── googlejavaformat
│ └── intellij
│ └── UiFormatterStyle.java
└── CONTRIBUTING.md
/core/src/test/resources/com/google/googlejavaformat/java/testdata/M2.output:
--------------------------------------------------------------------------------
1 | open module com.google.m {}
2 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/M2.input:
--------------------------------------------------------------------------------
1 | open module com.google.m {
2 | }
3 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B20524742.input:
--------------------------------------------------------------------------------
1 | class Test {{
2 | int x;
3 | }}
4 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B23626035.input:
--------------------------------------------------------------------------------
1 | class Test2 { void f(Test2... xs) {} }
2 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B21327412.input:
--------------------------------------------------------------------------------
1 | class B21327412 {
2 | int i = Data._ID;
3 | }
4 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B28786284.input:
--------------------------------------------------------------------------------
1 | enum E {
2 | ONE,
3 | TWO;
4 | ;
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B28786284.output:
--------------------------------------------------------------------------------
1 | enum E {
2 | ONE,
3 | TWO;
4 | ;
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B20524742.output:
--------------------------------------------------------------------------------
1 | class Test {
2 | {
3 | int x;
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B21327412.output:
--------------------------------------------------------------------------------
1 | class B21327412 {
2 | int i = Data._ID;
3 | }
4 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B23626035.output:
--------------------------------------------------------------------------------
1 | class Test2 {
2 | void f(Test2... xs) {}
3 | }
4 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B22424362.output:
--------------------------------------------------------------------------------
1 | class Test {
2 | {
3 | int x = 1 + 2;
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B32729600.input:
--------------------------------------------------------------------------------
1 | class B32729600 {
2 | {
3 | f(() -> {});
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B32729600.output:
--------------------------------------------------------------------------------
1 | class B32729600 {
2 | {
3 | f(() -> {});
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/Fields.output:
--------------------------------------------------------------------------------
1 | class Fields {
2 |
3 | int x = 1;
4 |
5 | int y = 1;
6 | }
7 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/UnaryMinus.input:
--------------------------------------------------------------------------------
1 | class UnaryMinus {
2 | {
3 | int b = - 1;
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/UnaryMinus.output:
--------------------------------------------------------------------------------
1 | class UnaryMinus {
2 | {
3 | int b = -1;
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B19950468.input:
--------------------------------------------------------------------------------
1 | class B19950468 {
2 | int code() {}
3 |
4 | // comment
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B19950468.output:
--------------------------------------------------------------------------------
1 | class B19950468 {
2 | int code() {}
3 |
4 | // comment
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B21585653.output:
--------------------------------------------------------------------------------
1 | class B21585653 {
2 | {
3 | try (X x = x; ) {}
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/EnumAnnotation.input:
--------------------------------------------------------------------------------
1 | enum E {
2 | @A ONE,
3 | TWO,
4 | @B @C THREE;
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/Fields.input:
--------------------------------------------------------------------------------
1 | class Fields {
2 |
3 | int x = 1;
4 |
5 | int y = 1;
6 |
7 | }
8 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/i101.input:
--------------------------------------------------------------------------------
1 | public @interface kHz {} // No prefix defined in the annotation itself
2 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/i101.output:
--------------------------------------------------------------------------------
1 | public @interface kHz {} // No prefix defined in the annotation itself
2 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/i95.input:
--------------------------------------------------------------------------------
1 | class I95 {
2 | public void format2(Object @Nullable ... a2) {}
3 | }
4 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/i95.output:
--------------------------------------------------------------------------------
1 | class I95 {
2 | public void format2(Object @Nullable ... a2) {}
3 | }
4 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B25811323.input:
--------------------------------------------------------------------------------
1 | class B25811323 {
2 | void f() {
3 | class Inner {};
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B21585653.input:
--------------------------------------------------------------------------------
1 | class B21585653 {
2 | {
3 | try (X x = x;) {
4 | }
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B25749989.input:
--------------------------------------------------------------------------------
1 | class Dummy {
2 | /**
3 | */private static void method(){MISSING();}
4 | }
5 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B28774859.output:
--------------------------------------------------------------------------------
1 | class B28774859 {
2 | java.util./*comment*/ Map./*comment*/ Entry e;
3 | }
4 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B35797074.input:
--------------------------------------------------------------------------------
1 | class B35797074 {
2 | /** javadoc */
3 | /* package */ final int x;
4 | }
5 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B22424362.input:
--------------------------------------------------------------------------------
1 | class Test {
2 | {
3 | int x =
4 | 1
5 |
6 | + 2;
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B25811323.output:
--------------------------------------------------------------------------------
1 | class B25811323 {
2 | void f() {
3 | class Inner {}
4 | ;
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B28774859.input:
--------------------------------------------------------------------------------
1 | class B28774859 {
2 | java.util. /*comment*/ Map. /*comment*/ Entry e;
3 | }
4 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B28788559.input:
--------------------------------------------------------------------------------
1 | import a.A;;
2 | import b.B;
3 |
4 | class Test {
5 | A a;
6 | B b;
7 | }
8 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B35797074.output:
--------------------------------------------------------------------------------
1 | class B35797074 {
2 | /** javadoc */
3 | /* package */ final int x;
4 | }
5 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/EnumAnnotation.output:
--------------------------------------------------------------------------------
1 | enum E {
2 | @A
3 | ONE,
4 | TWO,
5 | @B
6 | @C
7 | THREE;
8 | }
9 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B21185365.input:
--------------------------------------------------------------------------------
1 | class B21185365 {
2 | {
3 | for (int i = 0; i < s.length();) {}
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B21185365.output:
--------------------------------------------------------------------------------
1 | class B21185365 {
2 | {
3 | for (int i = 0; i < s.length(); ) {}
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B24494875.input:
--------------------------------------------------------------------------------
1 | public enum B24494875 {
2 | ;
3 | public static final String ONE = "ONE";
4 | }
5 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B24494875.output:
--------------------------------------------------------------------------------
1 | public enum B24494875 {
2 | ;
3 | public static final String ONE = "ONE";
4 | }
5 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B28788559.output:
--------------------------------------------------------------------------------
1 | import a.A;
2 | ;
3 | import b.B;
4 |
5 | class Test {
6 | A a;
7 | B b;
8 | }
9 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/ForMany.input:
--------------------------------------------------------------------------------
1 | class ForMany {
2 | {
3 | A a;
4 | for (b = B; c != C; d = D) {}
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/ForMany.output:
--------------------------------------------------------------------------------
1 | class ForMany {
2 | {
3 | A a;
4 | for (b = B; c != C; d = D) {}
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B38352414.input:
--------------------------------------------------------------------------------
1 | @Redacted(Redacted.REDACTED + "/redacted", redacted = Redacted.class)
2 | class B38352414 {}
3 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/i155.input:
--------------------------------------------------------------------------------
1 | class I155 {
2 | void walkAndClose(Stream> stream) {
3 | try (stream) {}
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/i155.output:
--------------------------------------------------------------------------------
1 | class I155 {
2 | void walkAndClose(Stream> stream) {
3 | try (stream) {}
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testjavadoc/B31404367.input:
--------------------------------------------------------------------------------
1 | /**
2 | * Foo.
3 | *
4 | *
7 | */
8 | class Foo {}
9 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testjavadoc/B31404367.output:
--------------------------------------------------------------------------------
1 | /**
2 | * Foo.
3 | *
4 | *
7 | */
8 | class Foo {}
9 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B25749989.output:
--------------------------------------------------------------------------------
1 | class Dummy {
2 | /** */
3 | private static void method() {
4 | MISSING();
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B30789352.input:
--------------------------------------------------------------------------------
1 | /**
2 | * Body.
3 | *
4 | * @param the protobuf type
5 | */
6 | class B30789352
{}
7 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B30789352.output:
--------------------------------------------------------------------------------
1 | /**
2 | * Body.
3 | *
4 | * @param
the protobuf type
5 | */
6 | class B30789352
{}
7 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B38203081.input:
--------------------------------------------------------------------------------
1 | class B38203081 {
2 | void f(int @A []... xs) {}
3 |
4 | void g(int @A [] @B... xs) {}
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B38352414.output:
--------------------------------------------------------------------------------
1 | @Redacted(Redacted.REDACTED + "/redacted", redacted = Redacted.class)
2 | class B38352414 {}
3 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/I13.output:
--------------------------------------------------------------------------------
1 | class I13 {
2 |
3 | @Nullable public int f;
4 |
5 | @Override
6 | public void m() {}
7 | }
8 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B36194204.input:
--------------------------------------------------------------------------------
1 | class B36194204 {
2 | {
3 | Function f = (String... s) -> s[0];
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B36194204.output:
--------------------------------------------------------------------------------
1 | class B36194204 {
2 | {
3 | Function f = (String... s) -> s[0];
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B38203081.output:
--------------------------------------------------------------------------------
1 | class B38203081 {
2 | void f(int @A []... xs) {}
3 |
4 | void g(int @A [] @B ... xs) {}
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/WildBound.input:
--------------------------------------------------------------------------------
1 | class WildBound {
2 | T f() {
3 | return (T) X.class.newInstance((F>) f, t);
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B26159561.input:
--------------------------------------------------------------------------------
1 | class B26159561 {
2 | {
3 | try (A a = a(); B b = b()) {}
4 | try (A a = a();) {}
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B32284705.input:
--------------------------------------------------------------------------------
1 | /**
2 | * Foo
3 | *
4 | * bar
5 | *
6 | *
7 | */
8 | class B32284705 {}
9 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B32284705.output:
--------------------------------------------------------------------------------
1 | /**
2 | * Foo
3 | *
4 | * bar
5 | *
6 | *
7 | */
8 | class B32284705 {}
9 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/WildBound.output:
--------------------------------------------------------------------------------
1 | class WildBound {
2 | T f() {
3 | return (T) X.class.newInstance((F>) f, t);
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/I202.input:
--------------------------------------------------------------------------------
1 | class I202 {
2 | {
3 | //noinspection CheckResult
4 | methodWhoseResultShouldBeChecked();
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/I202.output:
--------------------------------------------------------------------------------
1 | class I202 {
2 | {
3 | //noinspection CheckResult
4 | methodWhoseResultShouldBeChecked();
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/M3.input:
--------------------------------------------------------------------------------
1 | @Deprecated
2 | module moduletags {
3 | requires transitive static moduleA;
4 |
5 | exports testpkgmdltags;
6 | }
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/M3.output:
--------------------------------------------------------------------------------
1 | @Deprecated
2 | module moduletags {
3 | requires transitive static moduleA;
4 |
5 | exports testpkgmdltags;
6 | }
7 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/CL240367479.input:
--------------------------------------------------------------------------------
1 | package foo;;
2 |
3 | import com.google.second.Foo;
4 | import com.google.first.Bar;
5 |
6 | public class Blim {}
7 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/
2 | *.ims
3 | *.iml
4 |
5 | .classpath
6 | .project
7 | .factorypath
8 | .settings/
9 | .apt_generated/
10 |
11 | target/
12 |
13 | bin/
14 | out/
15 | eclipse_plugin/lib/
16 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B26159561.output:
--------------------------------------------------------------------------------
1 | class B26159561 {
2 | {
3 | try (A a = a();
4 | B b = b()) {}
5 | try (A a = a(); ) {}
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/CL240367479.output:
--------------------------------------------------------------------------------
1 | package foo;
2 | ;
3 | import com.google.second.Foo;
4 | import com.google.first.Bar;
5 |
6 | public class Blim {}
7 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/I13.input:
--------------------------------------------------------------------------------
1 | class I13 {
2 |
3 | @Nullable
4 |
5 | public int f;
6 |
7 | @Override
8 |
9 | public void m() {}
10 | }
11 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B27246427.input:
--------------------------------------------------------------------------------
1 | enum TrailingComment {
2 | /** foo */ FOO, /** bar */
3 | BAR;
4 |
5 | /** a */ Object a; /** b */
6 | Object b;
7 | }
8 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B29705613.input:
--------------------------------------------------------------------------------
1 | class B29705613 {
2 | /**
3 | * This tag isn't closed: {@link Foo
4 | *
5 | * A paragraph
6 | */
7 | int x;
8 | }
9 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/i176.input:
--------------------------------------------------------------------------------
1 | interface
2 | InterfaceWithPrivateStaticMethod
3 | {
4 | private static void bar() { }
5 | default void foo() { bar(); }
6 | }
7 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/MarkerAnnotation.input:
--------------------------------------------------------------------------------
1 | package com.google.googlejavaformat.java.test;
2 |
3 | /** JavaDoc comment. */
4 | public @interface MarkerAnnotation {}
5 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/MarkerAnnotation.output:
--------------------------------------------------------------------------------
1 | package com.google.googlejavaformat.java.test;
2 |
3 | /** JavaDoc comment. */
4 | public @interface MarkerAnnotation {}
5 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/i65.input:
--------------------------------------------------------------------------------
1 | import org.checkerframework.checker.nullness.qual.*;
2 |
3 | class UnannoPrimitives {
4 | Object ar = new @Nullable byte[] {4};
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/i65.output:
--------------------------------------------------------------------------------
1 | import org.checkerframework.checker.nullness.qual.*;
2 |
3 | class UnannoPrimitives {
4 | Object ar = new @Nullable byte[] {4};
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B22469536.input:
--------------------------------------------------------------------------------
1 | public class Test {
2 | public static void foo() {
3 | long x = -9223372036854775808L;
4 | int y = -2147483648;
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B22469536.output:
--------------------------------------------------------------------------------
1 | public class Test {
2 | public static void foo() {
3 | long x = -9223372036854775808L;
4 | int y = -2147483648;
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B29705613.output:
--------------------------------------------------------------------------------
1 | class B29705613 {
2 | /**
3 | * This tag isn't closed: {@link Foo
4 | *
5 | *
A paragraph
6 | */
7 | int x;
8 | }
9 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/SingleMemberAnnotation.input:
--------------------------------------------------------------------------------
1 | package com.google.googlejavaformat.java.test;
2 |
3 | public @interface SingleMemberAnnotation {
4 | int value();
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/SingleMemberAnnotation.output:
--------------------------------------------------------------------------------
1 | package com.google.googlejavaformat.java.test;
2 |
3 | public @interface SingleMemberAnnotation {
4 | int value();
5 | }
6 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/i176.output:
--------------------------------------------------------------------------------
1 | interface InterfaceWithPrivateStaticMethod {
2 | private static void bar() {}
3 |
4 | default void foo() {
5 | bar();
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/i98.output:
--------------------------------------------------------------------------------
1 | public class AnonInnerDefaults {
2 |
3 | public void tryStuff(final UIElement e) {
4 | PolyIface p = new @UI PolyIface() {};
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B21105569.input:
--------------------------------------------------------------------------------
1 | class B21105569 {
2 | void f() {
3 | // asd
4 | }
5 | void g() {
6 | /* asd */
7 | }
8 | void h() { /* asd */ }
9 | }
10 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/I12.output:
--------------------------------------------------------------------------------
1 | public class Test {}
2 |
3 | public class Test {}
4 |
5 | public class Test {}
6 |
7 | public class Test {}
8 |
9 | public class Test {}
10 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B32397217.input:
--------------------------------------------------------------------------------
1 | class T {
2 | {
3 | f(
4 | 1 /* 1 */, 2 /* 2 */);
5 | }
6 | }
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/LocalAnnotations.input:
--------------------------------------------------------------------------------
1 | class LocalAnnotations {
2 | {
3 | @Foo final Object x;
4 | @Foo(1) final Object y;
5 | @Foo(x=1) final Object y;
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/i66.output:
--------------------------------------------------------------------------------
1 | public class AnnotatedCast {
2 |
3 | public static @Sibling1 int convertSibling2ToSibling1(@Sibling2 int a) {
4 | return (@Sibling1 int) 1;
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/i100.input:
--------------------------------------------------------------------------------
1 | public class I100 {
2 | void f() {
3 | Object o;
4 | o = new String @A [] {"foo", "bar"};
5 | o = new String @A @B [] @C [] {"foo", "bar"};
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/i281.input:
--------------------------------------------------------------------------------
1 | public enum Empty {}
2 | public enum Empty {;}
3 | public enum Empty {;;;}
4 | public enum Empty {; // comment
5 | ;;}
6 | public enum Empty {;
7 | ;; // comment
8 | }
9 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/i66.input:
--------------------------------------------------------------------------------
1 | public class AnnotatedCast {
2 |
3 | public static @Sibling1 int convertSibling2ToSibling1(@Sibling2 int a) {
4 | return (@Sibling1 int) 1;
5 | }
6 |
7 | }
8 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/i98.input:
--------------------------------------------------------------------------------
1 | public class AnonInnerDefaults {
2 |
3 | public void tryStuff(final UIElement e) {
4 | PolyIface p =
5 | new @UI PolyIface() {
6 | };
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B20128921.input:
--------------------------------------------------------------------------------
1 | public class B20128921 {
2 |
3 | void m(Iterable ax) {
4 |
5 | for (T a : ax) {
6 |
7 | System.err.println(x);
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B27246427.output:
--------------------------------------------------------------------------------
1 | enum TrailingComment {
2 | /** foo */
3 | FOO,
4 | /** bar */
5 | BAR;
6 |
7 | /** a */
8 | Object a;
9 | /** b */
10 | Object b;
11 | }
12 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/i100.output:
--------------------------------------------------------------------------------
1 | public class I100 {
2 | void f() {
3 | Object o;
4 | o = new String @A [] {"foo", "bar"};
5 | o = new String @A @B [] @C [] {"foo", "bar"};
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B20128921.output:
--------------------------------------------------------------------------------
1 | public class B20128921 {
2 |
3 | void m(Iterable ax) {
4 |
5 | for (T a : ax) {
6 |
7 | System.err.println(x);
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B32397217.output:
--------------------------------------------------------------------------------
1 | class T {
2 | {
3 | f(
4 | 1 /* 1 */,
5 | 2 /* 2 */);
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/java11.input:
--------------------------------------------------------------------------------
1 | class Java11 {
2 | interface I {
3 | private default void f() {}
4 | }
5 |
6 | public static void main(String[] args) {
7 | var x = 42;
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/java11.output:
--------------------------------------------------------------------------------
1 | class Java11 {
2 | interface I {
3 | private default void f() {}
4 | }
5 |
6 | public static void main(String[] args) {
7 | var x = 42;
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B21031147.input:
--------------------------------------------------------------------------------
1 | public class B21031147 {
2 | {
3 | return new StringBuilder(maxLength)
4 | .append(seq, 0, truncationLength).append(truncationIndicator).toString();
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B21105569.output:
--------------------------------------------------------------------------------
1 | class B21105569 {
2 | void f() {
3 | // asd
4 | }
5 |
6 | void g() {
7 | /* asd */
8 | }
9 |
10 | void h() {
11 | /* asd */
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B23514513.input:
--------------------------------------------------------------------------------
1 | class Test {
2 | {
3 | f(
4 | rrr.kkkkk.uuuuuuuu, rrr.iiiiii.ggggggggggggggggg,
5 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx);
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/I365.output:
--------------------------------------------------------------------------------
1 | class I365 {
2 | {
3 | return foo____________.bar__________().baz____________().parallelStream()
4 | .map(Baz::getId)
5 | .collect(toList());
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/LocalAnnotations.output:
--------------------------------------------------------------------------------
1 | class LocalAnnotations {
2 | {
3 | @Foo final Object x;
4 | @Foo(1)
5 | final Object y;
6 | @Foo(x = 1)
7 | final Object y;
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B38241237.input:
--------------------------------------------------------------------------------
1 | class B38241237 {
2 | //foo
3 | //bar
4 | //one long incredibly unbroken sentence moving from topic to topic so that no-one had a chance to interrupt
5 | ///baz
6 | ////
7 | }
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B23514513.output:
--------------------------------------------------------------------------------
1 | class Test {
2 | {
3 | f(
4 | rrr.kkkkk.uuuuuuuu,
5 | rrr.iiiiii.ggggggggggggggggg,
6 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx);
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/i221.input:
--------------------------------------------------------------------------------
1 | class I221 {
2 | {
3 | logger.log(
4 | Level.WARNING,
5 | "Unable to obtain jst.web facet version from selected project", //$NON-NLS-1$
6 | ex);
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/i221.output:
--------------------------------------------------------------------------------
1 | class I221 {
2 | {
3 | logger.log(
4 | Level.WARNING,
5 | "Unable to obtain jst.web facet version from selected project", //$NON-NLS-1$
6 | ex);
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B21647014.input:
--------------------------------------------------------------------------------
1 | package test;
2 |
3 | import java.util.List;;
4 |
5 | ;
6 | class Test {
7 | ;
8 | public int x = 42;;
9 | ;;;
10 | {
11 | int x = 1;;;
12 | }
13 | ;
14 | }
15 | ;
16 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/i71.output:
--------------------------------------------------------------------------------
1 | import java.util.Arrays;
2 |
3 | class Test {
4 | Wrapper w = new Wrapper(Arrays.asList("a", "b", "c", "d", "e"), 2);
5 | Wrapper w = new Wrapper(Arrays.asList("a", "b", "c", "d", "e"));
6 | }
7 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B19950219.input:
--------------------------------------------------------------------------------
1 | class B19950219 {
2 | @Override
3 | String normalizeWord(String word) {
4 | return Ascii.toLowerCase(word);
5 | }
6 | @Override
7 | String convert(CaseFormat format, String s) {
8 | }}
9 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B20128174.input:
--------------------------------------------------------------------------------
1 | class B20128174 {
2 |
3 | enum Suit { DIAMONDS, HEARTS, CLUBS, SPADES };
4 |
5 | enum Suit { DIAMONDS, HEARTS, CLUBS, SPADES; };
6 |
7 | enum Suit { DIAMONDS, HEARTS, CLUBS, SPADES,; };
8 | }
9 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B29618429.input:
--------------------------------------------------------------------------------
1 | class B29618429 {
2 | /**
3 | * Hello
4 | *
5 | * World
6 | *
7 | * @LooksLikeATag(
8 | * foo = "bar"
9 | * )
10 | *
11 | */
12 | int x;
13 | }
14 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B38241237.output:
--------------------------------------------------------------------------------
1 | class B38241237 {
2 | // foo
3 | // bar
4 | // one long incredibly unbroken sentence moving from topic to topic so that no-one had a chance to
5 | // interrupt
6 | /// baz
7 | ////
8 | }
9 |
--------------------------------------------------------------------------------
/util/settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | sonatype-nexus-snapshots
5 | ${env.CI_DEPLOY_USERNAME}
6 | ${env.CI_DEPLOY_PASSWORD}
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B21031147.output:
--------------------------------------------------------------------------------
1 | public class B21031147 {
2 | {
3 | return new StringBuilder(maxLength)
4 | .append(seq, 0, truncationLength)
5 | .append(truncationIndicator)
6 | .toString();
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/I12.input:
--------------------------------------------------------------------------------
1 | public class Test {
2 |
3 |
4 |
5 | }
6 |
7 | public class Test {
8 |
9 |
10 | }
11 |
12 | public class Test {
13 |
14 | }
15 |
16 | public class Test {
17 | }
18 |
19 | public class Test {}
20 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/i60.output:
--------------------------------------------------------------------------------
1 | import org.checkerframework.checker.nullness.qual.*;
2 |
3 | public class FullyQualified {
4 |
5 | public void format1(java.lang.String a1, java.lang.@Nullable Object... a2) {
6 | // body
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B19950219.output:
--------------------------------------------------------------------------------
1 | class B19950219 {
2 | @Override
3 | String normalizeWord(String word) {
4 | return Ascii.toLowerCase(word);
5 | }
6 |
7 | @Override
8 | String convert(CaseFormat format, String s) {}
9 | }
10 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B29618429.output:
--------------------------------------------------------------------------------
1 | class B29618429 {
2 | /**
3 | * Hello
4 | *
5 | * World
6 | *
7 | *
8 | * @LooksLikeATag(
9 | * foo = "bar"
10 | * )
11 | *
12 | */
13 | int x;
14 | }
15 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B30764810.input:
--------------------------------------------------------------------------------
1 | class B30764810 {
2 | @Foo(
3 | x = {0},
4 | y = 0
5 | // comment
6 | )
7 | int a;
8 |
9 | @Foo(
10 | x = {0},
11 | y = 0
12 | /* comment
13 | */
14 | )
15 | int b;
16 | }
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B19996259.input:
--------------------------------------------------------------------------------
1 | class B19996259 {
2 | void g( // line comment
3 | int x) {}
4 |
5 | void //
6 | g //
7 | ( //
8 | int //
9 | x //
10 | , //
11 | int //
12 | y //
13 | ) //
14 | { //
15 | } //
16 | }
17 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B22913048.input:
--------------------------------------------------------------------------------
1 | private class Yellow extends Red.Orange {
2 | Yellow(Red red) {
3 | red.super();
4 | }
5 |
6 | Class> getClassB() {
7 | return new TypeToken(getClass()) {}.getRawType();
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B24862959.output:
--------------------------------------------------------------------------------
1 | public enum XxxxxxxXxxx implements XxxxxxXxxxxxxXxxx {
2 | XXXXXXXXX_XXXX_XXX_XXXXXXXX(
3 | " ", Xxxxxx.XXXXXXX, XxxxXxxxxxxXxxxxxxx.XXXXX),
4 | //
5 | //
6 | //
7 | }
8 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B72507902.input:
--------------------------------------------------------------------------------
1 | class B72507902 {
2 | private static class Xxxxxxxxxxxxxxxxxxxx
3 | extends Xxxxxxxxxxx<
4 | Pair>, Xxxxxxxxxxxxxxxxxxxx,
5 | List> {}
6 | }
7 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/I365.input:
--------------------------------------------------------------------------------
1 | class I365 {
2 | {
3 | return foo____________
4 | .bar__________()
5 | .baz____________()
6 | .parallelStream()
7 | .map(Baz::getId)
8 | .collect(toList());
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/i60.input:
--------------------------------------------------------------------------------
1 | import org.checkerframework.checker.nullness.qual.*;
2 |
3 | public class FullyQualified {
4 |
5 | public void format1(java.lang.String a1, java.lang. @Nullable Object... a2) {
6 | // body
7 | }
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B154342628.input:
--------------------------------------------------------------------------------
1 | class B154342628 {
2 | void f() {
3 | var var = 42;
4 | return writtenVariables.stream()
5 | .filter(var -> deletedVariableIds.contains(var.getId()))
6 | .collect(toImmutableList());
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B154342628.output:
--------------------------------------------------------------------------------
1 | class B154342628 {
2 | void f() {
3 | var var = 42;
4 | return writtenVariables.stream()
5 | .filter(var -> deletedVariableIds.contains(var.getId()))
6 | .collect(toImmutableList());
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/core/src/test/resources/com/google/googlejavaformat/java/testdata/B22610221.output:
--------------------------------------------------------------------------------
1 | class B22610221 {
2 | {
3 | for (Map.Entry, Object> entry :
4 | FOO.bar().bazs().