Skip to content

Commit

Permalink
ignoring few lines of code for sonar
Browse files Browse the repository at this point in the history
Signed-off-by: sj895092 <[email protected]>
  • Loading branch information
Shobhajayanna committed Sep 18, 2024
1 parent bf1ff39 commit 13ec04c
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ private Optional<Boolean> checkInvalidToken(Map<String, String> invalidTokens, S
try {
AccessTokenContainer c = objectMapper.readValue(s, AccessTokenContainer.class);
return Optional.of(c != null);
} catch (JsonProcessingException e) {
log.error("Not able to parse invalidToken json value.", e);
} catch (JsonProcessingException e) { // NOSONAR
log.error("Not able to parse invalidToken json value.", e); // NOSONAR
}
}
return Optional.empty();
Expand All @@ -132,8 +132,8 @@ private Optional<Boolean> checkRule(Map<String, String> tokenRules, String ruleI
if (result) {
return Optional.of(true);
}
} catch (NumberFormatException e) {
log.error("Not able to convert timestamp value to number.", e);
} catch (NumberFormatException e) { // NOSONAR
log.error("Not able to convert timestamp value to number.", e); // NOSONAR
}
}
return Optional.empty();
Expand Down Expand Up @@ -195,7 +195,7 @@ public static byte[] generateSalt() {
try {
SecureRandom.getInstanceStrong().nextBytes(salt);
return salt;
} catch (NoSuchAlgorithmException e) {
} catch (NoSuchAlgorithmException e) { // NOSONAR
throw new SecureTokenInitializationException(e);
}
}
Expand Down

0 comments on commit 13ec04c

Please sign in to comment.