mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
Suppress warning
This commit is contained in:
@@ -29,6 +29,8 @@ public class JwtAccessTokenRefresher {
|
||||
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) {
|
||||
JwtAccessTokenBuilder builder = builderFactory.create();
|
||||
Map<String, Object> claims = oldToken.getClaims();
|
||||
|
||||
Reference in New Issue
Block a user