Static code analysis. (#1017)

This commit is contained in:
Koen De Groote authored and Rob Bygrave committed 2017-04-30 14:47:02 +12:00
1 parent a120c2aaee
commit 335c4de109
16 files changed
+20 -85

No files matched your search

@@ -134,12 +134,7 @@ public final class DefaultPersistenceContext implements PersistenceContext {
private ClassContext getClassContext(Class<?> rootType) {
ClassContext classMap = typeCache.get(rootType);
if (classMap == null) {
classMap = new ClassContext();
typeCache.put(rootType, classMap);
}
return classMap;
return typeCache.computeIfAbsent(rootType, k -> new ClassContext());
}
private static class ClassContext {