From 4bbccd2bfe5249d74140e7dcdd486bc835d6024a Mon Sep 17 00:00:00 2001 From: Pankaj Godiyal Date: Thu, 16 Nov 2023 11:32:50 +0530 Subject: [PATCH] MOSIP-28970 Signed-off-by: Pankaj Godiyal --- .../io/mosip/mock/sbi/devicehelper/SBIDeviceHelper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MockMDS/src/main/java/io/mosip/mock/sbi/devicehelper/SBIDeviceHelper.java b/MockMDS/src/main/java/io/mosip/mock/sbi/devicehelper/SBIDeviceHelper.java index a9276d05..afd4f590 100644 --- a/MockMDS/src/main/java/io/mosip/mock/sbi/devicehelper/SBIDeviceHelper.java +++ b/MockMDS/src/main/java/io/mosip/mock/sbi/devicehelper/SBIDeviceHelper.java @@ -818,11 +818,11 @@ private void loadKeys(String keyStoreFileName, String alias, String keystorePass /** * To be invoked in afterSuite * @param keystoreFilePath + * This method is not thread safe */ - - public static synchronized void evictKeys(String keystoreFilePath) { + public static void evictKeys(String keystoreFilePath) { privateKeyMap.entrySet().removeIf(e -> e.getKey().startsWith(keystoreFilePath)); - certificateMap.entrySet().removeIf(e -> e.getKey().startsWith(keystoreFilePath)); + certificateMap.entrySet().removeIf(e -> e.getKey().startsWith(keystoreFilePath)); } }