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
Resolved Fortify System Information Leak issues
[policy/engine.git]
/
ONAP-PDP-REST
/
src
/
main
/
java
/
org
/
onap
/
policy
/
pdp
/
rest
/
impl
/
XACMLPdpPIPFinderFactory.java
diff --git
a/ONAP-PDP-REST/src/main/java/org/onap/policy/pdp/rest/impl/XACMLPdpPIPFinderFactory.java
b/ONAP-PDP-REST/src/main/java/org/onap/policy/pdp/rest/impl/XACMLPdpPIPFinderFactory.java
index
babcafa
..
32bbc2c
100644
(file)
--- a/
ONAP-PDP-REST/src/main/java/org/onap/policy/pdp/rest/impl/XACMLPdpPIPFinderFactory.java
+++ b/
ONAP-PDP-REST/src/main/java/org/onap/policy/pdp/rest/impl/XACMLPdpPIPFinderFactory.java
@@
-46,13
+46,12
@@
public class XACMLPdpPIPFinderFactory extends PIPFinderFactory {
@Override
public PIPFinder getFinder() throws PIPException {
@Override
public PIPFinder getFinder() throws PIPException {
- if (pipFinder == null) {
synchronized(this) {
if (pipFinder == null) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Creating default configurable engine finder");
}
synchronized(this) {
if (pipFinder == null) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Creating default configurable engine finder");
}
- pipFinder
= new ConfigurableEngineFinder();
+ pipFinder = new ConfigurableEngineFinder();
Properties xacmlProperties = null;
try {
xacmlProperties = XACMLProperties.getProperties();
Properties xacmlProperties = null;
try {
xacmlProperties = XACMLProperties.getProperties();
@@
-66,21
+65,18
@@
public class XACMLPdpPIPFinderFactory extends PIPFinderFactory {
}
}
}
}
}
}
- }
return pipFinder;
}
@Override
public PIPFinder getFinder(Properties properties) throws PIPException {
return pipFinder;
}
@Override
public PIPFinder getFinder(Properties properties) throws PIPException {
- if (pipFinder == null) {
- synchronized(this) {
- if (pipFinder == null) {
- if (LOGGER.isDebugEnabled()) {
+ synchronized(this) {
+ if (pipFinder == null) {
+ if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Creating configurable engine finder using: " + properties);
LOGGER.debug("Creating configurable engine finder using: " + properties);
- }
- pipFinder = new ConfigurableEngineFinder();
- ((ConfigurableEngineFinder)pipFinder).configure(properties);
}
}
+ pipFinder = new ConfigurableEngineFinder();
+ ((ConfigurableEngineFinder)pipFinder).configure(properties);
}
}
return this.pipFinder;
}
}
return this.pipFinder;