Fixing formatting issues

Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/aa12d80c
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/aa12d80c
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/aa12d80c

Branch: refs/heads/master
Commit: aa12d80cf8058ab99a66fb8a98bc91a5dee297a8
Parents: c842d6b
Author: anuruddhal <[email protected]>
Authored: Wed Jul 29 12:08:16 2015 +0530
Committer: Imesh Gunaratne <[email protected]>
Committed: Thu Jul 30 14:07:45 2015 +0530

----------------------------------------------------------------------
 .../service/registry/CarbonRegistry.java        | 21 +++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/aa12d80c/components/org.apache.stratos.metadata.service/src/main/java/org/apache/stratos/metadata/service/registry/CarbonRegistry.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.metadata.service/src/main/java/org/apache/stratos/metadata/service/registry/CarbonRegistry.java
 
b/components/org.apache.stratos.metadata.service/src/main/java/org/apache/stratos/metadata/service/registry/CarbonRegistry.java
index 11746f1..f2dd846 100644
--- 
a/components/org.apache.stratos.metadata.service/src/main/java/org/apache/stratos/metadata/service/registry/CarbonRegistry.java
+++ 
b/components/org.apache.stratos.metadata.service/src/main/java/org/apache/stratos/metadata/service/registry/CarbonRegistry.java
@@ -145,7 +145,8 @@ public class CarbonRegistry implements DataStore {
             for (String value : property.getValues()) {
                 if (!propertyValueExist(nodeResource, property.getKey(), 
value)) {
                     updated = true;
-                    log.info(String.format("Registry property is added: 
[resource-path] %s [Property Name] %s [Property Value] %s",
+                    log.info(String.format("Registry property is added: 
[resource-path] %s " +
+                                    "[Property Name] %s [Property Value] %s",
                             resourcePath, property.getKey(), value));
                     nodeResource.addProperty(property.getKey(), value);
                 } else {
@@ -175,7 +176,8 @@ public class CarbonRegistry implements DataStore {
 
     }
 
-    public boolean removePropertyValueFromApplication(String applicationId, 
String propertyName, String valueToRemove) throws RegistryException {
+    public boolean removePropertyValueFromApplication(String applicationId, 
String propertyName, String valueToRemove)
+            throws RegistryException {
         Registry registry = getRegistry();
         String resourcePath = mainResource + applicationId;
 
@@ -196,7 +198,8 @@ public class CarbonRegistry implements DataStore {
         registry.put(resourcePath, nodeResource);
         registry.commitTransaction();
 
-        log.info(String.format("Application %s property %s value %s is removed 
from metadata ", applicationId, propertyName, valueToRemove));
+        log.info(String.format("Application %s property %s value %s is removed 
from metadata ",
+                applicationId, propertyName, valueToRemove));
 
         return true;
     }
@@ -236,7 +239,8 @@ public class CarbonRegistry implements DataStore {
     }
 
     private UserRegistry getRegistry() throws RegistryException {
-        return 
org.apache.stratos.common.internal.ServiceReferenceHolder.getInstance().getRegistryService().getGovernanceSystemRegistry();
+        return 
org.apache.stratos.common.internal.ServiceReferenceHolder.getInstance().
+                getRegistryService().getGovernanceSystemRegistry();
     }
 
     /**
@@ -270,7 +274,8 @@ public class CarbonRegistry implements DataStore {
         return false;
     }
 
-    public boolean removePropertyFromApplication(String applicationId, String 
propertyName) throws org.wso2.carbon.registry.api.RegistryException {
+    public boolean removePropertyFromApplication(String applicationId, String 
propertyName)
+            throws org.wso2.carbon.registry.api.RegistryException {
         Registry registry = getRegistry();
         String resourcePath = mainResource + applicationId;
         // We are using only super tenant registry to persist
@@ -282,7 +287,8 @@ public class CarbonRegistry implements DataStore {
         if (registry.resourceExists(resourcePath)) {
             nodeResource = registry.get(resourcePath);
             if (nodeResource.getProperty(propertyName) == null) {
-                log.info(String.format("[application-id] %s does not have a 
property [property-name] %s ", applicationId, propertyName));
+                log.info(String.format("[application-id] %s does not have a 
property [property-name] %s ", applicationId,
+                        propertyName));
                 return false;
             } else {
                 nodeResource.removeProperty(propertyName);
@@ -293,7 +299,8 @@ public class CarbonRegistry implements DataStore {
             return false;
         }
 
-        log.info(String.format("Application [application-id] %s property 
[property-name] %s removed from Registry ", applicationId, propertyName));
+        log.info(String.format("Application [application-id] %s property 
[property-name] %s removed from Registry ",
+                applicationId, propertyName));
         return true;
     }
 

Reply via email to