From 98bf012459c846d1c3906a5d1ead73cf26b8e195 Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Mon, 1 Oct 2018 20:42:36 -0400 Subject: Fix remaining sonar Mostly moving variables to their right spot. Issue-ID: POLICY-1129 Change-Id: Iccc084bbb404ffd51bdd0b26b5f8c373c6142fb1 Signed-off-by: Pamela Dragosh --- .../onap/policy/controlloop/policy/guard/ControlLoopGuard.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'controlloop/common/policy-yaml/src') diff --git a/controlloop/common/policy-yaml/src/main/java/org/onap/policy/controlloop/policy/guard/ControlLoopGuard.java b/controlloop/common/policy-yaml/src/main/java/org/onap/policy/controlloop/policy/guard/ControlLoopGuard.java index 66ac3e612..cad32c273 100644 --- a/controlloop/common/policy-yaml/src/main/java/org/onap/policy/controlloop/policy/guard/ControlLoopGuard.java +++ b/controlloop/common/policy-yaml/src/main/java/org/onap/policy/controlloop/policy/guard/ControlLoopGuard.java @@ -32,6 +32,11 @@ public class ControlLoopGuard { //DO Nothing Empty Constructor } + public ControlLoopGuard(ControlLoopGuard clGuard) { + this.guard = new Guard(); + this.guards = new LinkedList<>(clGuard.guards); + } + public Guard getGuard() { return guard; } @@ -48,11 +53,6 @@ public class ControlLoopGuard { this.guards = guards; } - public ControlLoopGuard(ControlLoopGuard clGuard) { - this.guard = new Guard(); - this.guards = new LinkedList<>(clGuard.guards); - } - @Override public String toString() { return "Guard [guard=" + guard + ", GuardPolicies=" + guards + "]"; -- cgit 1.2.3-korg