Suppress warning

This commit is contained in:
René Pfeuffer
2018-11-30 10:20:12 +01:00
parent e8672bbeff
commit 2e092b36cf

View File

@@ -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();