summaryrefslogtreecommitdiffstats
path: root/controlloop/common/policy-yaml/src
diff options
context:
space:
mode:
Diffstat (limited to 'controlloop/common/policy-yaml/src')
-rw-r--r--controlloop/common/policy-yaml/src/main/java/org/onap/policy/controlloop/policy/guard/ControlLoopGuard.java10
1 files changed, 5 insertions, 5 deletions
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 + "]";