From 27900a911085b4a2c1ae0b6e3ef88c5f54979e04 Mon Sep 17 00:00:00 2001 From: Sumapriya Sarvepalli Date: Fri, 16 Feb 2018 16:40:03 +0530 Subject: Sonar:Critical Make the enclosing method static or remove this set CloudConfigFactory.java:L152 L158 Sonar Link: https://sonar.onap.org/project/issues?fileUuids=AV3Bnscm5bp_wwmIVB8j&id=org.openecomp.so%3Aso&resolved=false&severities=CRITICAL Location: src/main/java/org/openecomp/mso/cloud/CloudConfigFactory.java Change-Id: Ie4bbda9ab312f920971b77f58ec3ced6ea9f9db2 Issue-ID: SO-427 Signed-off-by: Sumapriya Sarvepalli --- .../src/main/java/org/openecomp/mso/cloud/CloudConfigFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'adapters/mso-adapter-utils/src/main') diff --git a/adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/cloud/CloudConfigFactory.java b/adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/cloud/CloudConfigFactory.java index 8da3b212d9..79fe8fda8e 100644 --- a/adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/cloud/CloudConfigFactory.java +++ b/adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/cloud/CloudConfigFactory.java @@ -127,7 +127,7 @@ public class CloudConfigFactory implements Serializable { * @return true if Properties have been reloaded, false otherwise */ @Schedule(minute = "*/1", hour = "*", persistent = false) - public void reloadCloudConfig () { + public static void reloadCloudConfig () { try { if (!rwl.writeLock ().tryLock () && !rwl.writeLock ().tryLock (30L, TimeUnit.SECONDS)) { -- cgit 1.2.3-korg