Skip to content

Commit 11f58d8

Browse files
committed
Fix the small behavior change in the latest google-java-format.
1 parent 88ca46e commit 11f58d8

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import mylib.UsedA;
2+
import mylib.UsedB;
3+
4+
public class Java {
5+
public static void main(String[] args) {
6+
System.out.println("hello");
7+
UsedB.someMethod();
8+
UsedA.someMethod();
9+
}
10+
}

testlib/src/test/java/com/diffplug/spotless/java/GoogleJavaFormatStepTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void behavior18() throws Exception {
3535
}
3636
FormatterStep step = GoogleJavaFormatStep.create("1.8", TestProvisioner.mavenCentral());
3737
StepHarness.forStep(step)
38-
.testResource("java/googlejavaformat/JavaCodeUnformatted.test", "java/googlejavaformat/JavaCodeFormatted.test")
38+
.testResource("java/googlejavaformat/JavaCodeUnformatted.test", "java/googlejavaformat/JavaCodeFormatted18.test")
3939
.testResource("java/googlejavaformat/JavaCodeWithLicenseUnformatted.test", "java/googlejavaformat/JavaCodeWithLicenseFormatted.test")
4040
.testResource("java/googlejavaformat/JavaCodeWithLicensePackageUnformatted.test", "java/googlejavaformat/JavaCodeWithLicensePackageFormatted.test")
4141
.testResource("java/googlejavaformat/JavaCodeWithPackageUnformatted.test", "java/googlejavaformat/JavaCodeWithPackageFormatted.test");

0 commit comments

Comments
 (0)