summaryrefslogtreecommitdiffstats
path: root/controlloop
diff options
context:
space:
mode:
authorshashikanth <shashikanth.vh@huawei.com>2017-09-26 16:11:41 +0530
committerShashikanth VH <shashikanth.vh@huawei.com>2017-09-27 04:59:04 +0000
commit7e3076dc28f4265db6b3bc6d1b693fe7801e80cd (patch)
tree7ffff0f623daa6764d0b3de2a1cf391a28ef5f61 /controlloop
parent83e5f06aef61e32463c97241fd6a5cfef6679206 (diff)
Fix major sonar issues
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>
Diffstat (limited to 'controlloop')
-rw-r--r--controlloop/common/guard/src/main/java/org/onap/policy/guard/CallGuardTask.java2
-rw-r--r--controlloop/common/model-impl/sdc/src/main/java/org/onap/policy/sdc/ResourceType.java3
2 files changed, 4 insertions, 1 deletions
diff --git a/controlloop/common/guard/src/main/java/org/onap/policy/guard/CallGuardTask.java b/controlloop/common/guard/src/main/java/org/onap/policy/guard/CallGuardTask.java
index 8ea4ec1b3..87f43d701 100644
--- a/controlloop/common/guard/src/main/java/org/onap/policy/guard/CallGuardTask.java
+++ b/controlloop/common/guard/src/main/java/org/onap/policy/guard/CallGuardTask.java
@@ -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;
diff --git a/controlloop/common/model-impl/sdc/src/main/java/org/onap/policy/sdc/ResourceType.java b/controlloop/common/model-impl/sdc/src/main/java/org/onap/policy/sdc/ResourceType.java
index ee2fc89fd..c4dbfffa4 100644
--- a/controlloop/common/model-impl/sdc/src/main/java/org/onap/policy/sdc/ResourceType.java
+++ b/controlloop/common/model-impl/sdc/src/main/java/org/onap/policy/sdc/ResourceType.java
@@ -33,7 +33,8 @@ public enum ResourceType {
this.type = type;
}
- public String toString() {
+ @Override
+ public String toString() {
return this.type;
}