From 10aa15751e19b02d60b5ebd3ad3c71ec8b2a119b Mon Sep 17 00:00:00 2001 From: nasonawa Date: Tue, 26 Sep 2023 07:20:37 +0530 Subject: [PATCH] declared newMap on a separate line in PasswordKeyStoreSpi --- .../org/wildfly/security/keystore/PasswordKeyStoreSpi.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/credential/base/src/main/java/org/wildfly/security/keystore/PasswordKeyStoreSpi.java b/credential/base/src/main/java/org/wildfly/security/keystore/PasswordKeyStoreSpi.java index b5c592f6303..055eea95440 100644 --- a/credential/base/src/main/java/org/wildfly/security/keystore/PasswordKeyStoreSpi.java +++ b/credential/base/src/main/java/org/wildfly/security/keystore/PasswordKeyStoreSpi.java @@ -91,7 +91,9 @@ public void engineSetEntry(final String alias, final KeyStore.Entry entry, final if (protParam != null) { throw log.keyCannotBeProtected(alias); } - HashMap map, newMap; + HashMap map; + HashMap newMap; + do { map = pwRef.get(); if (map == null) {