Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v5
- name: Set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v5
with:
distribution: zulu
java-version: '11'
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: |
~/.gradle/caches
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spotless {
include '**/*.java'
exclude 'build/generated/**/*.*', 'build/generated-examples/**/*.*'
}
googleJavaFormat()
googleJavaFormat('1.7')
}
}

Expand Down
4 changes: 4 additions & 0 deletions src/main/java/io/spring/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ public class Util {
public static boolean isEmpty(String value) {
return value == null || value.isEmpty();
}

public static boolean isValidEmail(String email) {
return email != null && email.contains("@");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ public class DefaultJwtServiceTest {

@BeforeEach
public void setUp() {
jwtService = new DefaultJwtService("123123123123123123123123123123123123123123123123123123123123", 3600);
jwtService =
new DefaultJwtService("123123123123123123123123123123123123123123123123123123123123", 3600);
}

@Test
Expand Down