Skip to content

Commit f732fab

Browse files
committed
Delete unused imports and dead code in CGLIB fork
1 parent fda3f82 commit f732fab

File tree

5 files changed

+0
-14
lines changed

5 files changed

+0
-14
lines changed

spring-core/src/main/java/org/springframework/cglib/beans/BulkBean.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@
1515
*/
1616
package org.springframework.cglib.beans;
1717

18-
import java.lang.reflect.Constructor;
19-
import java.lang.reflect.Method;
20-
import java.lang.reflect.Modifier;
2118
import java.security.ProtectionDomain;
22-
import java.util.*;
2319
import org.springframework.cglib.core.*;
2420
import org.springframework.asm.ClassVisitor;
2521

spring-core/src/main/java/org/springframework/cglib/beans/BulkBeanEmitter.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@
1515
*/
1616
package org.springframework.cglib.beans;
1717

18-
import java.lang.reflect.Constructor;
1918
import java.lang.reflect.Method;
2019
import java.lang.reflect.Modifier;
21-
import java.util.*;
2220
import org.springframework.cglib.core.*;
2321
import org.springframework.asm.ClassVisitor;
2422
import org.springframework.asm.Type;

spring-core/src/main/java/org/springframework/cglib/beans/BulkBeanException.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
*/
1616
package org.springframework.cglib.beans;
1717

18-
import org.springframework.cglib.core.CodeGenerationException;
19-
2018
@SuppressWarnings({"rawtypes", "unchecked", "serial"})
2119
public class BulkBeanException extends RuntimeException
2220
{

spring-core/src/main/java/org/springframework/cglib/core/ReflectUtils.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
import java.util.Map;
3939
import java.util.Set;
4040

41-
import org.springframework.asm.Attribute;
4241
import org.springframework.asm.Type;
4342

4443
/**
@@ -626,10 +625,6 @@ public Signature getSignature() {
626625
public Type[] getExceptionTypes() {
627626
return ReflectUtils.getExceptionTypes(member);
628627
}
629-
630-
public Attribute getAttribute() {
631-
return null;
632-
}
633628
};
634629
}
635630

spring-core/src/main/java/org/springframework/cglib/proxy/Enhancer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,6 @@ private void emitMethods(final ClassEmitter ce, List methods, List actualMethods
12471247
se.invoke_constructor(THREAD_LOCAL, CSTRUCT_NULL);
12481248
se.putfield(THREAD_CALLBACKS_FIELD);
12491249

1250-
final Object[] state = new Object[1];
12511250
CallbackGenerator.Context context = new CallbackGenerator.Context() {
12521251
public ClassLoader getClassLoader() {
12531252
return Enhancer.this.getClassLoader();

0 commit comments

Comments
 (0)