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
[POLICY-122] Policy GUI Fixes
[policy/engine.git]
/
ECOMP-PAP-REST
/
src
/
main
/
java
/
org
/
openecomp
/
policy
/
pap
/
xacml
/
rest
/
util
/
JPAUtils.java
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
2db7e42
..
9a23bee
100644
(file)
--- 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) {
try {
buildFunctionMaps();
} catch (ServletException e) {
-
e.printStackTrace(
);
+
LOGGER.error("Exception Occured"+e
);
}
}
}
}
}
}
@@
-151,7
+151,7
@@
public class JPAUtils {
try {
buildFunctionMaps();
} catch (ServletException e) {
try {
buildFunctionMaps();
} catch (ServletException e) {
-
e.printStackTrace(
);
+
LOGGER.error("Exception Occured"+e
);
}
}
}
}
}
}
@@
-159,8
+159,8
@@
public class JPAUtils {
}
private void buildFunctionMaps() throws ServletException {
}
private void buildFunctionMaps() throws ServletException {
- mapDatatype2Function = new HashMap<
Datatype, List<FunctionDefinition>
>();
- mapID2Function = new HashMap<
String, FunctionDefinition
>();
+ mapDatatype2Function = new HashMap<>();
+ mapID2Function = new HashMap<>();
EntityManager em = emf.createEntityManager();
Query getFunctionDefinitions = em.createNamedQuery("FunctionDefinition.findAll");
EntityManager em = emf.createEntityManager();
Query getFunctionDefinitions = em.createNamedQuery("FunctionDefinition.findAll");