X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ECOMP-PAP-REST%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenecomp%2Fpolicy%2Fpap%2Fxacml%2Frest%2Futil%2FJPAUtils.java;h=9a23beed3bcaba7052498edb55bef89bf22e6785;hb=4ca818fdfb9b807562166800a086b413593d6894;hp=2db7e42cdc78bf56558aca97628c52e280062be9;hpb=a330af579866dacbe595e2e4ad1dd29cd3c96945;p=policy%2Fengine.git diff --git a/ECOMP-PAP-REST/src/main/java/org/openecomp/policy/pap/xacml/rest/util/JPAUtils.java b/ECOMP-PAP-REST/src/main/java/org/openecomp/policy/pap/xacml/rest/util/JPAUtils.java index 2db7e42cd..9a23beed3 100644 --- a/ECOMP-PAP-REST/src/main/java/org/openecomp/policy/pap/xacml/rest/util/JPAUtils.java +++ b/ECOMP-PAP-REST/src/main/java/org/openecomp/policy/pap/xacml/rest/util/JPAUtils.java @@ -138,7 +138,7 @@ public class JPAUtils { try { buildFunctionMaps(); } catch (ServletException e) { - e.printStackTrace(); + LOGGER.error("Exception Occured"+e); } } } @@ -151,7 +151,7 @@ public class JPAUtils { try { buildFunctionMaps(); } catch (ServletException e) { - e.printStackTrace(); + LOGGER.error("Exception Occured"+e); } } } @@ -159,8 +159,8 @@ public class JPAUtils { } private void buildFunctionMaps() throws ServletException { - mapDatatype2Function = new HashMap>(); - mapID2Function = new HashMap(); + mapDatatype2Function = new HashMap<>(); + mapID2Function = new HashMap<>(); EntityManager em = emf.createEntityManager(); Query getFunctionDefinitions = em.createNamedQuery("FunctionDefinition.findAll");