mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 07:55:47 +01:00
Suppress warning
This commit is contained in:
@@ -29,6 +29,8 @@ public class JwtAccessTokenRefresher {
|
|||||||
this.clock = clock;
|
this.clock = clock;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("squid:S3655") // the refresh expiration cannot be null at the time building the new token, because
|
||||||
|
// we checked this before in tokenCanBeRefreshed
|
||||||
Optional<JwtAccessToken> refresh(JwtAccessToken oldToken) {
|
Optional<JwtAccessToken> refresh(JwtAccessToken oldToken) {
|
||||||
JwtAccessTokenBuilder builder = builderFactory.create();
|
JwtAccessTokenBuilder builder = builderFactory.create();
|
||||||
Map<String, Object> claims = oldToken.getClaims();
|
Map<String, Object> claims = oldToken.getClaims();
|
||||||
|
|||||||
Reference in New Issue
Block a user