Merge "Sonar:Critical"
authorSeshu Kumar M <seshu.kumar.m@huawei.com>
Fri, 9 Mar 2018 06:03:03 +0000 (06:03 +0000)
committerGerrit Code Review <gerrit@onap.org>
Fri, 9 Mar 2018 06:03:03 +0000 (06:03 +0000)
1  2 
adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/cloud/CloudConfigFactory.java

@@@ -127,7 -127,7 +127,7 @@@ public class CloudConfigFactory impleme
       * @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)) {
              StringBuffer response = new StringBuffer ();
              response.append ("Cloud Sites:\n");
              for (CloudSite site : cloudConfig.getCloudSites ().values ()) {
 -                response.append (site.toString () + "\n");
 +                response.append(site.toString()).append("\n");
              }
      
              response.append ("\n\nCloud Identity Services:\n");
              for (CloudIdentity identity : cloudConfig.getIdentityServices ().values ()) {
 -                response.append (identity.toString () + "\n");
 +                response.append(identity.toString()).append("\n");
              }
      
              return Response.status (200).entity (response).build ();