Code Review
/
policy
/
engine.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Addressing Technical Debt for ONAP-XACML"
[policy/engine.git]
/
ONAP-XACML
/
src
/
main
/
java
/
org
/
onap
/
policy
/
xacml
/
std
/
pap
/
StdPDP.java
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
4c1f4aa
..
e059ea6
100644
(file)
--- 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
@@
-52,7
+52,9
@@
public class StdPDP extends StdPDPItemSetChangeNotifier implements OnapPDP, Comp
private transient Set<PDPPIPConfig> pipConfigs = new HashSet<>();
public StdPDP() {
private transient Set<PDPPIPConfig> pipConfigs = new HashSet<>();
public StdPDP() {
-
+ //
+ // Default constructor
+ //
}
public StdPDP(String id, Integer jmxport) {
}
public StdPDP(String id, Integer jmxport) {
@@
-158,6
+160,8
@@
public class StdPDP extends StdPDPItemSetChangeNotifier implements OnapPDP, Comp
public void setPipConfigs(Set<PDPPIPConfig> pipConfigs) {
this.pipConfigs = pipConfigs;
}
public void setPipConfigs(Set<PDPPIPConfig> pipConfigs) {
this.pipConfigs = pipConfigs;
}
+
+ @Override
public void setJmxPort(Integer jmxport) {
this.jmxport = jmxport;
}
public void setJmxPort(Integer jmxport) {
this.jmxport = jmxport;
}
@@
-209,13
+213,13
@@
public class StdPDP extends StdPDPItemSetChangeNotifier implements OnapPDP, Comp
if ( ! (o instanceof StdPDP)) {
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 -1;
}
if (name == null) {
return 1;
}
- return name.compareTo(
((StdPDP)o)
.name);
+ return name.compareTo(
o
.name);
}
}
}
}