mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-30 03:09:03 +00:00
Simplify some redundant code
Closes gh-24586 Co-authored-by: Sam Brannen <sbrannen@pivotal.io>
This commit is contained in:
+1
-2
@@ -240,8 +240,7 @@ public abstract class ExtendedEntityManagerCreator {
|
||||
}
|
||||
else {
|
||||
interfaces = cachedEntityManagerInterfaces.computeIfAbsent(rawEm.getClass(), key -> {
|
||||
Set<Class<?>> ifcs = new LinkedHashSet<>();
|
||||
ifcs.addAll(ClassUtils
|
||||
Set<Class<?>> ifcs = new LinkedHashSet<>(ClassUtils
|
||||
.getAllInterfacesForClassAsSet(key, cl));
|
||||
ifcs.add(EntityManagerProxy.class);
|
||||
return ClassUtils.toClassArray(ifcs);
|
||||
|
||||
Reference in New Issue
Block a user