Fix major sonar issue
authorshashikanth <shashikanth.vh@huawei.com>
Wed, 27 Sep 2017 11:01:12 +0000 (16:31 +0530)
committerShashikanth VH <shashikanth.vh@huawei.com>
Wed, 27 Sep 2017 11:54:44 +0000 (11:54 +0000)
Fix major sonar issues in ccsdk/sli/core module
https://sonar.onap.org/component_issues?id=org.onap.ccsdk.sli.core%3Accsdk-sli-core#resolved=false|severities=MAJOR|rules=squid%3AS1161

Add the "@Override" annotation above this method signature.

Issue-Id:CCSDK-67
Change-Id: Ie074574c7bbd2ca394d116e73aa6aab47ad5b8de
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
sliPluginUtils/provider/src/main/java/org/onap/ccsdk/sli/core/slipluginutils/SliPluginUtils.java

index 3237586..d24ae80 100644 (file)
@@ -651,6 +651,7 @@ public class SliPluginUtils implements SvcLogicJavaPlugin {
                        return 0;
                }
 
+                @Override
                public boolean equals(Object object) {
                        if (this == object) {
                                return true;
@@ -676,6 +677,7 @@ public class SliPluginUtils implements SvcLogicJavaPlugin {
                        return true;
                }
 
+                @Override
                public int hashCode() {
                        int result = super.hashCode();
                        result = 31 * result + (child_elements != null ? child_elements.hashCode() : 0);