Merge "Added the "@Override" annotation"
authorSeshu Kumar M <seshu.kumar.m@huawei.com>
Mon, 23 Oct 2017 05:16:05 +0000 (05:16 +0000)
committerGerrit Code Review <gerrit@onap.org>
Mon, 23 Oct 2017 05:16:05 +0000 (05:16 +0000)
adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/openstack/utils/MsoHeatEnvironmentResource.java

index 31e2fca..a2e605f 100644 (file)
@@ -56,10 +56,18 @@ public class MsoHeatEnvironmentResource {
        public void setValue(String value) {
                this.value = value;
        }
+
+       @Override
        public String toString() {
-               return "\"" + this.name + "\": " + this.value;
+               StringBuilder str = new StringBuilder();
+               str.append("\"");
+               str.append(this.name);
+               str.append("\": ");
+               str.append(this.value);
+               return str.toString();
        }
-       
+
+       @Override
        public boolean equals(Object o) {       
                if (!(o instanceof MsoHeatEnvironmentResource)) {
                        return false;
@@ -74,7 +82,8 @@ public class MsoHeatEnvironmentResource {
                }
                return false;
        }
-       
+
+       @Override
        public int hashCode() {
                int result = 0;
                try {