From 6a9b54b275feff5369419a86997e94d0a95fc48e Mon Sep 17 00:00:00 2001 From: "waqas.ikram" Date: Thu, 7 Jun 2018 16:01:35 +0100 Subject: Fixing Sonar bugs and Vulnerabilities Change-Id: Id5a95f23f1308dbb9f7f0c0f5567e238ecf830af Issue-ID: POLICY-859 Signed-off-by: waqas.ikram --- .../policy/apex/context/test/locking/ConcurrentContextThread.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'context') diff --git a/context/context-test/src/main/java/org/onap/policy/apex/context/test/locking/ConcurrentContextThread.java b/context/context-test/src/main/java/org/onap/policy/apex/context/test/locking/ConcurrentContextThread.java index 6ffacbb6c..42e3e0978 100644 --- a/context/context-test/src/main/java/org/onap/policy/apex/context/test/locking/ConcurrentContextThread.java +++ b/context/context-test/src/main/java/org/onap/policy/apex/context/test/locking/ConcurrentContextThread.java @@ -138,14 +138,8 @@ public class ConcurrentContextThread implements Runnable { item = new TestContextItem003(0L); } lTypeAlbum.put("testValue", item); - } catch (final Exception exception) { - throw exception; } finally { - try { - lTypeAlbum.unlockForWriting("testValue"); - } catch (final ContextException contextException) { - throw contextException; - } + lTypeAlbum.unlockForWriting("testValue"); } } } -- cgit 1.2.3-korg