diff options
author | 2018-02-16 16:40:03 +0530 | |
---|---|---|
committer | 2018-02-16 16:40:57 +0530 | |
commit | 27900a911085b4a2c1ae0b6e3ef88c5f54979e04 (patch) | |
tree | 0fc8d7324ac748f7292e3179039fe2b59ab63e6c /adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/cloud/CloudConfigFactory.java | |
parent | 16c4941d63b517e26067492aae621b2e03321ec4 (diff) |
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 <SS00493505@TechMahindra.com>
Diffstat (limited to 'adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/cloud/CloudConfigFactory.java')
-rw-r--r-- | adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/cloud/CloudConfigFactory.java | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |