From 7e3076dc28f4265db6b3bc6d1b693fe7801e80cd Mon Sep 17 00:00:00 2001 From: shashikanth Date: Tue, 26 Sep 2017 16:11:41 +0530 Subject: 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 --- .../guard/src/main/java/org/onap/policy/guard/CallGuardTask.java | 2 ++ .../model-impl/sdc/src/main/java/org/onap/policy/sdc/ResourceType.java | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'controlloop') 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; } -- cgit 1.2.3-korg