Skip to content
This repository was archived by the owner on May 22, 2021. It is now read-only.

Commit a7d97c1

Browse files
committed
Adapt github workflow to new java version
1 parent 70eafdf commit a7d97c1

4 files changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ jobs:
1111
- name: Setup java
1212
uses: actions/setup-java@v1
1313
with:
14-
java-version: 1.8
14+
java-version: 1.11
1515
- run: mvn clean install -Dcheckstyle.skip -q

.github/workflows/checkstyle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ jobs:
1111
- name: Setup java
1212
uses: actions/setup-java@v1
1313
with:
14-
java-version: 1.8
14+
java-version: 1.11
1515
- run: mvn checkstyle:check -q

auth/src/main/java/com/gewia/common/auth/jwt/JwtUtil.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public JwtUtil(String issuer, List<String> defaultAudience, String secret) {
5353
*
5454
* @return a pair including the decoded token and the result
5555
*/
56+
@SuppressWarnings("IllegalCatch")
5657
public Pair<DecodedJWT, VerificationResult> verify(String token) {
5758
if (token.toLowerCase().startsWith("bearer")) token = token.substring(7);
5859

@@ -103,7 +104,9 @@ public String create(String subject, int expirationTime, int expirationTimeUnit,
103104
/**
104105
* Creates a default jwt which can be used as a CSRF or refresh token - or whatever u want.
105106
*
106-
* To be compliant with most standards, you should set the subject (the user).
107+
* <p>
108+
* To be compliant with most standards, you should set the subject (the user).
109+
* </p>
107110
*
108111
* @param expirationTime the amount of <i>expirationTimeUnit</i> the token shall be valid
109112
* @param expirationTimeUnit the time unit used for <i>expirationTime</i>; Use Calendar.XY for this
@@ -132,7 +135,9 @@ public JWTCreator.Builder createBuilder(String subject, int expirationTime, int
132135
/**
133136
* Creates a default jwt which can be used as a CSRF or refresh token - or whatever u want.
134137
*
135-
* To be compliant with most standards, you should set the subject (the user).
138+
* <p>
139+
* To be compliant with most standards, you should set the subject (the user).
140+
* </p>
136141
*
137142
* @param expirationTime the amount of <i>expirationTimeUnit</i> the token shall be valid
138143
* @param expirationTimeUnit the time unit used for <i>expirationTime</i>; Use Calendar.XY for this

util/src/main/java/com/gewia/common/util/Pair.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
@Data(staticConstructor = "of")
66
public class Pair<A, B> {
7-
private final A left;
8-
private final B right;
7+
8+
private final A left;
9+
private final B right;
10+
911
}

0 commit comments

Comments
 (0)