Fix major sonar issues 51/15451/4
authorshashikanth <shashikanth.vh@huawei.com>
Tue, 26 Sep 2017 10:41:41 +0000 (16:11 +0530)
committerShashikanth VH <shashikanth.vh@huawei.com>
Wed, 27 Sep 2017 04:59:04 +0000 (04:59 +0000)
Fix major sonar issues in policy/drools-applications module
https://sonar.onap.org/component_issues?id=org.onap.policy.drools-applications%3Adrools-pdp-apps#resolved=false|severities=MAJOR|rules=squid%3AS1161

Added "@Override" annotation above this method signature.

Issue-Id:POLICY-239
Change-Id: I578d0e740a6c04ba02df400a3abc99f9b774908a
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
controlloop/common/guard/src/main/java/org/onap/policy/guard/CallGuardTask.java
controlloop/common/model-impl/sdc/src/main/java/org/onap/policy/sdc/ResourceType.java

index 8ea4ec1..87f43d7 100644 (file)
@@ -52,6 +52,8 @@ public class CallGuardTask implements Runnable {
        requestId = reqId;
        target = tar;
     }
+
+    @Override
     public void run() {
        long startTime = System.nanoTime();
        com.att.research.xacml.api.Request request = null;
index ee2fc89..c4dbfff 100644 (file)
@@ -33,7 +33,8 @@ public enum ResourceType {
                this.type = type;
        }
 
-       public String   toString() {
+        @Override
+       public String toString() {
                return this.type;
        }