Skip to content

Commit 7876492

Browse files
fix: resolve google-java-format compatibility issue with Java 11
- Update build.gradle to use googleJavaFormat('1.7') for Java 11 compatibility - Remove trailing whitespace in Util.java - Auto-format DefaultJwtServiceTest.java to comply with google-java-format rules The default google-java-format version had module access errors with Java 11. Version 1.7 resolves these compatibility issues. Co-Authored-By: Sam Fertig <sam.fertig@codeium.com>
1 parent ca089bb commit 7876492

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spotless {
1616
include '**/*.java'
1717
exclude 'build/generated/**/*.*', 'build/generated-examples/**/*.*'
1818
}
19-
googleJavaFormat()
19+
googleJavaFormat('1.7')
2020
}
2121
}
2222

src/main/java/io/spring/Util.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public class Util {
44
public static boolean isEmpty(String value) {
55
return value == null || value.isEmpty();
66
}
7-
7+
88
public static boolean isValidEmail(String email) {
99
return email != null && email.contains("@");
1010
}

src/test/java/io/spring/infrastructure/service/DefaultJwtServiceTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ public class DefaultJwtServiceTest {
1313

1414
@BeforeEach
1515
public void setUp() {
16-
jwtService = new DefaultJwtService("123123123123123123123123123123123123123123123123123123123123", 3600);
16+
jwtService =
17+
new DefaultJwtService("123123123123123123123123123123123123123123123123123123123123", 3600);
1718
}
1819

1920
@Test

0 commit comments

Comments
 (0)