diff options
author | Jim Hahn <jrh3@att.com> | 2020-06-26 18:56:35 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2020-06-26 18:57:42 -0400 |
commit | f6d0b829522c694d0d33b9d8d4c7f22dcad78dde (patch) | |
tree | 9577ae6aa40ab51a1d09cbbb2addc5ad4603bcd5 | |
parent | 4f250eadf1bb2b7bfe736aa6511bb3df1ffe3eec (diff) |
Fix build error from Pair changes
This is a quick fix to get around a build error in drools-applications
due to "Pair" changes made in policy-common and/or policy-models.
Issue-ID: POLICY-2202
Change-Id: If1cb60947e55d97ef7cfb1d05d69e07c54c71a05
Signed-off-by: Jim Hahn <jrh3@att.com>
-rw-r--r-- | controlloop/common/guard/src/main/java/org/onap/policy/guard/PolicyGuardXacmlHelper.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/controlloop/common/guard/src/main/java/org/onap/policy/guard/PolicyGuardXacmlHelper.java b/controlloop/common/guard/src/main/java/org/onap/policy/guard/PolicyGuardXacmlHelper.java index 5a5218c40..d9ace1d83 100644 --- a/controlloop/common/guard/src/main/java/org/onap/policy/guard/PolicyGuardXacmlHelper.java +++ b/controlloop/common/guard/src/main/java/org/onap/policy/guard/PolicyGuardXacmlHelper.java @@ -24,6 +24,7 @@ package org.onap.policy.guard; import java.util.HashMap; import java.util.Map; import java.util.UUID; +import org.apache.commons.lang3.tuple.Pair; import org.onap.policy.common.endpoints.event.comm.Topic.CommInfrastructure; import org.onap.policy.common.endpoints.utils.NetLoggerUtil; import org.onap.policy.common.endpoints.utils.NetLoggerUtil.EventType; @@ -33,7 +34,6 @@ import org.onap.policy.drools.system.PolicyEngineConstants; import org.onap.policy.models.decisions.concepts.DecisionRequest; import org.onap.policy.models.decisions.concepts.DecisionResponse; import org.onap.policy.rest.RestManager; -import org.onap.policy.rest.RestManager.Pair; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -125,10 +125,10 @@ public class PolicyGuardXacmlHelper { return Util.DENY; } - logger.info("Guard Decision REST Response {} {}", httpDetails.first, httpDetails.second); + logger.info("Guard Decision REST Response {} {}", httpDetails.getLeft(), httpDetails.getRight()); - if (httpDetails.first == 200) { - DecisionResponse decision = coder.decode(httpDetails.second, DecisionResponse.class); + if (httpDetails.getLeft() == 200) { + DecisionResponse decision = coder.decode(httpDetails.getRight(), DecisionResponse.class); logger.info("Guard Decision {}", decision); return decision.getStatus(); } |