Fixing formatting

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

Branch: refs/heads/master
Commit: 37191b78d109b8433157c19b640543d898c030dc
Parents: aa12d80
Author: anuruddhal <[email protected]>
Authored: Wed Jul 29 12:11:09 2015 +0530
Committer: Imesh Gunaratne <[email protected]>
Committed: Thu Jul 30 14:07:45 2015 +0530

----------------------------------------------------------------------
 .../stratos/metadata/service/api/MetadataApi.java   | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/37191b78/components/org.apache.stratos.metadata.service/src/main/java/org/apache/stratos/metadata/service/api/MetadataApi.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.metadata.service/src/main/java/org/apache/stratos/metadata/service/api/MetadataApi.java
 
b/components/org.apache.stratos.metadata.service/src/main/java/org/apache/stratos/metadata/service/api/MetadataApi.java
index 85caa7d..48f369b 100644
--- 
a/components/org.apache.stratos.metadata.service/src/main/java/org/apache/stratos/metadata/service/api/MetadataApi.java
+++ 
b/components/org.apache.stratos.metadata.service/src/main/java/org/apache/stratos/metadata/service/api/MetadataApi.java
@@ -82,7 +82,8 @@ public class MetadataApi {
     @Path("/applications/{application_id}/clusters/{cluster_id}/properties")
     @Produces("application/json")
     @Consumes("application/json")
-    public Response getClusterProperties(@PathParam("application_id") String 
applicationId, @PathParam("cluster_id") String clusterId) throws 
RestAPIException {
+    public Response getClusterProperties(@PathParam("application_id") String 
applicationId,
+                                         @PathParam("cluster_id") String 
clusterId) throws RestAPIException {
 
         List<Property> properties;
         Property[] propertiesArr = null;
@@ -149,7 +150,9 @@ public class MetadataApi {
     
@Path("/applications/{application_id}/cluster/{cluster_id}/properties/{property_name}")
     @Produces("application/json")
     @Consumes("application/json")
-    public Response getClusterProperty(@PathParam("application_id") String 
applicationId, @PathParam("cluster_id") String clusterId, 
@PathParam("property_name") String propertyName) throws RestAPIException {
+    public Response getClusterProperty(@PathParam("application_id") String 
applicationId,
+                                       @PathParam("cluster_id") String 
clusterId,
+                                       @PathParam("property_name") String 
propertyName) throws RestAPIException {
         List<Property> properties;
 
         Property property = null;
@@ -243,7 +246,8 @@ public class MetadataApi {
     @Path("applications/{application_id}/properties/{property_name}")
     @Produces("application/json")
     @Consumes("application/json")
-    public Response deleteApplicationProperty(@PathParam("application_id") 
String applicationId, @PathParam("property_name") String propertyName)
+    public Response deleteApplicationProperty(@PathParam("application_id") 
String applicationId,
+                                              @PathParam("property_name") 
String propertyName)
             throws RestAPIException {
 
         try {
@@ -265,7 +269,8 @@ public class MetadataApi {
     
@Path("applications/{application_id}/properties/{property_name}/value/{value}")
     @Produces("application/json")
     @Consumes("application/json")
-    public Response 
deleteApplicationPropertyValue(@PathParam("application_id") String 
applicationId, @PathParam("property_name") String propertyName,
+    public Response 
deleteApplicationPropertyValue(@PathParam("application_id") String 
applicationId,
+                                                   @PathParam("property_name") 
String propertyName,
                                                    @PathParam("value") String 
propertyValue)
             throws RestAPIException {
 
@@ -277,7 +282,8 @@ public class MetadataApi {
                         applicationId));
             }
         } catch (RegistryException e) {
-            String msg = String.format("[application-id] %s [property-name] %s 
[value] %s deletion failed" + applicationId, propertyName, propertyValue);
+            String msg = String.format("[application-id] %s [property-name] %s 
[value] %s deletion failed" +
+                    applicationId, propertyName, propertyValue);
             log.error(msg, e);
             throw new RestAPIException(msg, e);
         }

Reply via email to