From 0c8425b25c093f638351a14f84a7b1df731cd0de Mon Sep 17 00:00:00 2001 From: rb7147 Date: Thu, 1 Feb 2018 16:29:04 -0500 Subject: Resolved Fortify System Information Leak issues Issue-ID: POLICY-550 Change-Id: I2145ecb6de43b69d6faf44c6395b119134a9904f Signed-off-by: rb7147 --- .../org/onap/policy/xacml/custom/OnapFunctionDefinitionFactory.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ONAP-PDP/src') diff --git a/ONAP-PDP/src/main/java/org/onap/policy/xacml/custom/OnapFunctionDefinitionFactory.java b/ONAP-PDP/src/main/java/org/onap/policy/xacml/custom/OnapFunctionDefinitionFactory.java index 87075f9bb..ea4e90eda 100644 --- a/ONAP-PDP/src/main/java/org/onap/policy/xacml/custom/OnapFunctionDefinitionFactory.java +++ b/ONAP-PDP/src/main/java/org/onap/policy/xacml/custom/OnapFunctionDefinitionFactory.java @@ -49,7 +49,7 @@ public class OnapFunctionDefinitionFactory extends FunctionDefinitionFactory { } private static void initMap() { - if (needMapInit) { + synchronized(mapFunctionDefinitions) { if (needMapInit) { needMapInit = false; @@ -74,7 +74,6 @@ public class OnapFunctionDefinitionFactory extends FunctionDefinitionFactory { register(FD_CUSTOM_REGEXP_MATCH); } } - } } public OnapFunctionDefinitionFactory() { -- cgit 1.2.3-korg