Removed useless assignment to variables 29/15929/3
authorrama-huawei <rama.subba.reddy.s@huawei.com>
Wed, 27 Sep 2017 10:37:52 +0000 (16:07 +0530)
committerrama-huawei <rama.subba.reddy.s@huawei.com>
Wed, 27 Sep 2017 12:34:35 +0000 (18:04 +0530)
Issue-Id:SO-118

Change-Id: I97cfd892ae5d13003b0b37509ac91be863dbd55e
Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatTemplateArtifactUuidModelUuid.java
mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatTemplateParam.java
mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/NetworkRecipe.java
mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/NetworkResource.java
mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/NetworkResourceCustomization.java
mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/TempNetworkHeatTemplateLookup.java

index 96aa2c2..2c79d7d 100644 (file)
@@ -73,7 +73,7 @@ public class HeatTemplateArtifactUuidModelUuid implements Serializable {
     public int hashCode () {\r
         // hash code does not have to be a unique result - only that two objects that should be treated as equal\r
         // return the same value. so this should work.\r
-        int result = 0;\r
+        int result;\r
         result = this.heatTemplateArtifactUuid.hashCode() + this.modelUuid.hashCode();\r
         return result;\r
     }\r
index 68b881e..7ceb19c 100644 (file)
@@ -89,7 +89,7 @@ public class HeatTemplateParam implements Serializable {
 
     @Override
     public int hashCode () {
-        int result = 0;
+        int result;
         result = this.paramName == null ? 0 : this.paramName.hashCode() + this.heatTemplateArtifactUuid == null ? 0 : this.heatTemplateArtifactUuid.hashCode();
         return result;
        }
index f119259..9ef1fb6 100644 (file)
@@ -45,7 +45,7 @@ public class NetworkRecipe extends Recipe implements Serializable {
        
        @Override
        public String toString () {
-               StringBuffer sb = new StringBuffer();
+               StringBuilder sb = new StringBuilder();
                sb.append(super.toString());
                sb.append (",modelName=" + modelName);
                sb.append (",networkParamXSD=" + networkParamXSD);
index a3c8468..b6151f1 100644 (file)
@@ -142,7 +142,7 @@ public class NetworkResource extends MavenLikeVersioning implements Serializable
 
        @Override
        public String toString () {
-               StringBuffer sb = new StringBuffer();
+               StringBuilder sb = new StringBuilder();
                sb.append("NETWORK Resource:");
                sb.append("modelVersion=");
                sb.append(modelVersion);
index 19660f3..ef09fef 100644 (file)
@@ -104,7 +104,7 @@ public class NetworkResourceCustomization implements Serializable{
 
        @Override
        public String toString () {
-               StringBuffer sb = new StringBuffer();
+               StringBuilder sb = new StringBuilder();
                sb.append("modelCustomizationUuid=");
                sb.append(this.modelCustomizationUuid);
                sb.append("networkResourceModelUuid=");
@@ -143,9 +143,9 @@ public class NetworkResourceCustomization implements Serializable{
     public int hashCode () {
         // hash code does not have to be a unique result - only that two objects that should be treated as equal
         // return the same value. so this should work.
-        int result = 0;
+        int result;
         result = (this.modelCustomizationUuid != null ? this.modelCustomizationUuid.hashCode() : 0) + (this.networkResourceModelUuid != null ? this.networkResourceModelUuid.hashCode() : 0);
         return result;
     }
 
-}
\ No newline at end of file
+}
index 3aad334..20801c1 100644 (file)
@@ -91,7 +91,7 @@ public class TempNetworkHeatTemplateLookup implements Serializable {
     public int hashCode () {\r
         // hash code does not have to be a unique result - only that two objects that should be treated as equal\r
         // return the same value. so this should work.\r
-        int result = 0;\r
+        int result;\r
         result = (this.networkResourceModelName != null ? this.networkResourceModelName.hashCode() : 0) + (this.heatTemplateArtifactUuid != null ? this.heatTemplateArtifactUuid.hashCode() : 0);\r
         return result;\r
     }\r