Browse Source

Delete unused imports and dead code in CGLIB fork

pull/28780/head
Sam Brannen 2 years ago
parent
commit
f732fab820
  1. 4
      spring-core/src/main/java/org/springframework/cglib/beans/BulkBean.java
  2. 2
      spring-core/src/main/java/org/springframework/cglib/beans/BulkBeanEmitter.java
  3. 2
      spring-core/src/main/java/org/springframework/cglib/beans/BulkBeanException.java
  4. 5
      spring-core/src/main/java/org/springframework/cglib/core/ReflectUtils.java
  5. 1
      spring-core/src/main/java/org/springframework/cglib/proxy/Enhancer.java

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

@ -15,11 +15,7 @@ @@ -15,11 +15,7 @@
*/
package org.springframework.cglib.beans;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.security.ProtectionDomain;
import java.util.*;
import org.springframework.cglib.core.*;
import org.springframework.asm.ClassVisitor;

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

@ -15,10 +15,8 @@ @@ -15,10 +15,8 @@
*/
package org.springframework.cglib.beans;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.*;
import org.springframework.cglib.core.*;
import org.springframework.asm.ClassVisitor;
import org.springframework.asm.Type;

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

@ -15,8 +15,6 @@ @@ -15,8 +15,6 @@
*/
package org.springframework.cglib.beans;
import org.springframework.cglib.core.CodeGenerationException;
@SuppressWarnings({"rawtypes", "unchecked", "serial"})
public class BulkBeanException extends RuntimeException
{

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

@ -38,7 +38,6 @@ import java.util.List; @@ -38,7 +38,6 @@ import java.util.List;
import java.util.Map;
import java.util.Set;
import org.springframework.asm.Attribute;
import org.springframework.asm.Type;
/**
@ -626,10 +625,6 @@ public class ReflectUtils { @@ -626,10 +625,6 @@ public class ReflectUtils {
public Type[] getExceptionTypes() {
return ReflectUtils.getExceptionTypes(member);
}
public Attribute getAttribute() {
return null;
}
};
}

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

@ -1247,7 +1247,6 @@ public class Enhancer extends AbstractClassGenerator { @@ -1247,7 +1247,6 @@ public class Enhancer extends AbstractClassGenerator {
se.invoke_constructor(THREAD_LOCAL, CSTRUCT_NULL);
se.putfield(THREAD_CALLBACKS_FIELD);
final Object[] state = new Object[1];
CallbackGenerator.Context context = new CallbackGenerator.Context() {
public ClassLoader getClassLoader() {
return Enhancer.this.getClassLoader();

Loading…
Cancel
Save