fix code smell in model-impl
[policy/models.git] / models-interactions / model-impl / sdc / src / main / java / org / onap / policy / sdc / ResourceInstance.java
index dce6ec0..9c1db8a 100644 (file)
@@ -8,9 +8,9 @@
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -25,26 +25,27 @@ import java.io.Serializable;
 import java.util.UUID;
 
 public class ResourceInstance implements Serializable {
+
     private static final long serialVersionUID = -5506162340393802424L;
 
     private String resourceInstanceName;
     private String resourceName;
-    private UUID    resourceInvariantUuid;
+    private UUID resourceInvariantUuid;
     private String resourceVersion;
     private ResourceType resourceType;
-    private UUID    resourceUuid;
-    
+    private UUID resourceUuid;
+
     public ResourceInstance() {
         //Empty Constructor
     }
-    
+
     /**
      * Constructor.
-     * 
+     *
      * @param instance copy object
      */
     public ResourceInstance(ResourceInstance instance) {
-        if (instance == null) { 
+        if (instance == null) {
             return;
         }
         this.resourceInstanceName = instance.resourceInstanceName;
@@ -54,7 +55,7 @@ public class ResourceInstance implements Serializable {
         this.resourceType = instance.resourceType;
         this.resourceUuid = instance.resourceUuid;
     }
-    
+
     public String getResourceInstanceName() {
         return resourceInstanceName;
     }
@@ -106,10 +107,10 @@ public class ResourceInstance implements Serializable {
     @Override
     public String toString() {
         return "ResourceInstance [resourceInstanceName=" + resourceInstanceName + ", resourceName=" + resourceName
-                + ", resourceInvariantUuid=" + resourceInvariantUuid + ", resourceVersion=" + resourceVersion
-                + ", resourceType=" + resourceType + ", resourceUuid=" + resourceUuid + "]";
+            + ", resourceInvariantUuid=" + resourceInvariantUuid + ", resourceVersion=" + resourceVersion
+            + ", resourceType=" + resourceType + ", resourceUuid=" + resourceUuid + "]";
     }
-    
+
     @Override
     public int hashCode() {
         final int prime = 31;
@@ -122,7 +123,7 @@ public class ResourceInstance implements Serializable {
         result = prime * result + ((resourceVersion == null) ? 0 : resourceVersion.hashCode());
         return result;
     }
-    
+
     @Override
     public boolean equals(Object obj) {
         if (this == obj) {
@@ -175,5 +176,5 @@ public class ResourceInstance implements Serializable {
         }
         return true;
     }
-    
+
 }