Fix some sonar findings

Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
Marinov Avgustin
2023-06-30 09:29:05 +03:00
parent 150de47983
commit ad3404c93d
3 changed files with 10 additions and 3 deletions

View File

@@ -118,6 +118,7 @@ public class ControllerPreAuthenticatedSecurityHeaderFilter extends AbstractCont
* if we find the hash in any the trusted CA chain to accept this request for
* this tenant.
*/
@SuppressWarnings("java:S2629") // check if debug is enabled is maybe heavier then evaluation
private String getIssuerHashHeader(final DmfTenantSecurityToken securityToken, final String knownIssuerHashes) {
// there may be several knownIssuerHashes configured for the tenant
final List<String> knownHashes = splitMultiHashBySemicolon(knownIssuerHashes);