X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ONAP-XACML%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fpolicy%2Fxacml%2Fstd%2Fpap%2FStdPDP.java;h=8727b8185acd191853a156cb33f10c8a308ceb9e;hb=cd417e811577a3efd26a57c3cad3a48d42d9e2d6;hp=4c1f4aadc83537de6e214d686bf695f554d60463;hpb=7ea81288603904f0cb6f57936da44d6a3dd521a6;p=policy%2Fengine.git diff --git a/ONAP-XACML/src/main/java/org/onap/policy/xacml/std/pap/StdPDP.java b/ONAP-XACML/src/main/java/org/onap/policy/xacml/std/pap/StdPDP.java index 4c1f4aadc..8727b8185 100644 --- a/ONAP-XACML/src/main/java/org/onap/policy/xacml/std/pap/StdPDP.java +++ b/ONAP-XACML/src/main/java/org/onap/policy/xacml/std/pap/StdPDP.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * ONAP-XACML * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -52,7 +52,9 @@ public class StdPDP extends StdPDPItemSetChangeNotifier implements OnapPDP, Comp private transient Set pipConfigs = new HashSet<>(); public StdPDP() { - + // + // Default constructor + // } public StdPDP(String id, Integer jmxport) { @@ -158,6 +160,8 @@ public class StdPDP extends StdPDPItemSetChangeNotifier implements OnapPDP, Comp public void setPipConfigs(Set pipConfigs) { this.pipConfigs = pipConfigs; } + + @Override public void setJmxPort(Integer jmxport) { this.jmxport = jmxport; } @@ -206,16 +210,13 @@ public class StdPDP extends StdPDPItemSetChangeNotifier implements OnapPDP, Comp if (o == null) { return -1; } - if ( ! (o instanceof StdPDP)) { - return -1; - } - if (((StdPDP)o).name == null) { + if (o.name == null) { return -1; } if (name == null) { return 1; } - return name.compareTo(((StdPDP)o).name); + return name.compareTo(o.name); } }