mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
Static code analysis. (#1017)
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user