From 0207f3a55f75ac8e2e51fe31ccc3c2eefec08905 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Thu, 11 Aug 2022 19:41:56 +0200 Subject: [PATCH] Polishing --- .../java/org/springframework/cglib/proxy/Enhancer.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/cglib/proxy/Enhancer.java b/spring-core/src/main/java/org/springframework/cglib/proxy/Enhancer.java index d01914537ec..42de4db409c 100644 --- a/spring-core/src/main/java/org/springframework/cglib/proxy/Enhancer.java +++ b/spring-core/src/main/java/org/springframework/cglib/proxy/Enhancer.java @@ -42,7 +42,6 @@ import org.springframework.cglib.core.CollectionUtils; import org.springframework.cglib.core.Constants; import org.springframework.cglib.core.DuplicatesPredicate; import org.springframework.cglib.core.EmitUtils; -import org.springframework.cglib.core.KeyFactory; import org.springframework.cglib.core.Local; import org.springframework.cglib.core.MethodInfo; import org.springframework.cglib.core.MethodInfoTransformer; @@ -556,9 +555,9 @@ public class Enhancer extends AbstractClassGenerator { private Object createHelper() { preValidate(); // SPRING PATCH BEGIN - Object key = new EnhancerKey((superclass != null) ? superclass.getName() : null, - (interfaces != null ? Arrays.asList(ReflectUtils.getNames(interfaces)) :null), - filter == ALL_ZERO ? null : new WeakCacheKey(filter), + Object key = new EnhancerKey((superclass != null ? superclass.getName() : null), + (interfaces != null ? Arrays.asList(ReflectUtils.getNames(interfaces)) : null), + (filter == ALL_ZERO ? null : new WeakCacheKey(filter)), Arrays.asList(callbackTypes), useFactory, interceptDuringConstruction,