X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ONAP-PDP-REST%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fpolicy%2Fpdp%2Frest%2Fimpl%2FXACMLPdpPIPFinderFactory.java;h=32bbc2caf4c7ac6db1890e689415ecde31a1af95;hb=refs%2Fchanges%2F53%2F30053%2F3;hp=babcafaeb813022ca9a7ba95b56367854809a15a;hpb=e8c14515d3f48aad6d42a31d7489a3ef25557f2d;p=policy%2Fengine.git 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 babcafaeb..32bbc2caf 100644 --- 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 { - if (pipFinder == null) { 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(); @@ -66,21 +65,18 @@ public class XACMLPdpPIPFinderFactory extends PIPFinderFactory { } } } - } 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); - } - pipFinder = new ConfigurableEngineFinder(); - ((ConfigurableEngineFinder)pipFinder).configure(properties); } + pipFinder = new ConfigurableEngineFinder(); + ((ConfigurableEngineFinder)pipFinder).configure(properties); } } return this.pipFinder;