Skip to content
Permalink
Browse files
Removing unused imports.
  • Loading branch information
jwcarman committed Jul 27, 2013
1 parent e467239 commit 26a73ba3071f398828f8f15704591ab6223efb64
Showing 15 changed files with 42 additions and 108 deletions.
@@ -17,19 +17,9 @@

package org.apache.commons.proxy2.cglib;

import net.sf.cglib.proxy.Callback;
import net.sf.cglib.proxy.CallbackFilter;
import net.sf.cglib.proxy.Dispatcher;
import net.sf.cglib.proxy.Enhancer;
import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;
import net.sf.cglib.proxy.*;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.proxy2.Interceptor;
import org.apache.commons.proxy2.Invocation;
import org.apache.commons.proxy2.Invoker;
import org.apache.commons.proxy2.ObjectProvider;
import org.apache.commons.proxy2.ProxyFactory;
import org.apache.commons.proxy2.ProxyUtils;
import org.apache.commons.proxy2.*;
import org.apache.commons.proxy2.impl.AbstractSubclassingProxyFactory;

import java.io.Serializable;
@@ -19,11 +19,7 @@

import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.*;

/**
* A useful superclass for {@link ProxyClassGenerator} implementations.
@@ -19,12 +19,7 @@

import java.lang.ref.Reference;
import java.lang.ref.WeakReference;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.WeakHashMap;
import java.util.*;

/**
* A cache for storing implementation classes for proxies based on a specific type of {@link ProxyClassGenerator}. A
@@ -20,23 +20,12 @@
import org.apache.commons.proxy2.provider.BeanProvider;
import org.apache.commons.proxy2.provider.ConstantProvider;
import org.apache.commons.proxy2.provider.SingletonProvider;
import org.apache.commons.proxy2.util.AbstractTestCase;
import org.apache.commons.proxy2.util.DuplicateEcho;
import org.apache.commons.proxy2.util.Echo;
import org.apache.commons.proxy2.util.EchoImpl;
import org.apache.commons.proxy2.util.SuffixInterceptor;
import org.apache.commons.proxy2.util.*;

import java.io.IOException;
import java.io.Serializable;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.Date;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.ServiceLoader;
import java.util.SortedSet;
import java.util.TreeSet;
import java.util.*;

/**
* @author James Carman
@@ -1,11 +1,10 @@
package org.apache.commons.proxy2.util;

import junit.framework.TestCase;
import org.apache.commons.lang3.SerializationUtils;

import java.io.Serializable;

import org.apache.commons.lang3.SerializationUtils;

/**
* @author James Carman
* @since 1.1
@@ -17,12 +17,7 @@

package org.apache.commons.proxy2.javassist;

import javassist.CannotCompileException;
import javassist.ClassPool;
import javassist.CtClass;
import javassist.CtField;
import javassist.LoaderClassPath;
import javassist.NotFoundException;
import javassist.*;
import org.apache.commons.proxy2.ProxyUtils;
import org.apache.commons.proxy2.exception.ObjectProviderException;

@@ -17,12 +17,7 @@

package org.apache.commons.proxy2.jdk;

import org.apache.commons.proxy2.Interceptor;
import org.apache.commons.proxy2.Invocation;
import org.apache.commons.proxy2.Invoker;
import org.apache.commons.proxy2.ObjectProvider;
import org.apache.commons.proxy2.ProxyFactory;
import org.apache.commons.proxy2.ProxyUtils;
import org.apache.commons.proxy2.*;
import org.apache.commons.proxy2.impl.AbstractProxyFactory;

import java.io.Serializable;
@@ -16,11 +16,11 @@
*/
package org.apache.commons.proxy2.stub;

import java.lang.annotation.Annotation;

import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.lang3.tuple.Pair;

import java.lang.annotation.Annotation;

/**
* Special {@link StubConfigurer} subclass that makes creating nested annotations (somewhat more) convenient.
*
@@ -17,6 +17,13 @@

package org.apache.commons.proxy2.stub;

import org.apache.commons.lang3.AnnotationUtils;
import org.apache.commons.lang3.Validate;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.proxy2.*;
import org.apache.commons.proxy2.impl.AbstractProxyFactory;
import org.apache.commons.proxy2.provider.ConstantProvider;

import java.io.Serializable;
import java.lang.annotation.Annotation;
import java.lang.reflect.InvocationHandler;
@@ -25,18 +32,6 @@
import java.lang.reflect.Proxy;
import java.util.Map;

import org.apache.commons.lang3.AnnotationUtils;
import org.apache.commons.lang3.Validate;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.proxy2.Interceptor;
import org.apache.commons.proxy2.Invocation;
import org.apache.commons.proxy2.Invoker;
import org.apache.commons.proxy2.ObjectProvider;
import org.apache.commons.proxy2.ProxyFactory;
import org.apache.commons.proxy2.ProxyUtils;
import org.apache.commons.proxy2.impl.AbstractProxyFactory;
import org.apache.commons.proxy2.provider.ConstantProvider;

/**
* {@link AnnotationFactory} provides a simplified API over {@link StubProxyFactory}
* to stub a Java {@link Annotation}. Like "real" runtime proxies, instances created via
@@ -17,14 +17,6 @@

package org.apache.commons.proxy2.stub;

import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.commons.lang3.reflect.TypeUtils;
import org.apache.commons.lang3.tuple.Pair;
import org.apache.commons.proxy2.Interceptor;
@@ -33,6 +25,9 @@
import org.apache.commons.proxy2.ProxyUtils;
import org.apache.commons.proxy2.invoker.RecordedInvocation;

import java.lang.reflect.Method;
import java.util.*;

/**
* StubInterceptor collects, then replays on demand, the stubbing information.
*
@@ -17,14 +17,9 @@

package org.apache.commons.proxy2.stub;

import java.lang.reflect.Method;
import org.apache.commons.proxy2.*;

import org.apache.commons.proxy2.Interceptor;
import org.apache.commons.proxy2.Invocation;
import org.apache.commons.proxy2.Invoker;
import org.apache.commons.proxy2.ObjectProvider;
import org.apache.commons.proxy2.ProxyFactory;
import org.apache.commons.proxy2.ProxyUtils;
import java.lang.reflect.Method;

/**
* {@link ProxyFactory} that stubs proxies' behavior using {@link StubConfigurer}s.
@@ -17,26 +17,20 @@

package org.apache.commons.proxy2.stub;

import static org.junit.Assert.*;
import static org.junit.Assume.assumeTrue;

import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.Iterator;

import org.apache.commons.proxy2.Interceptor;
import org.apache.commons.proxy2.Invocation;
import org.apache.commons.proxy2.Invoker;
import org.apache.commons.proxy2.ObjectProvider;
import org.apache.commons.proxy2.ProxyFactory;
import org.apache.commons.proxy2.*;
import org.apache.commons.proxy2.invoker.NullInvoker;
import org.apache.commons.proxy2.provider.BeanProvider;
import org.apache.commons.proxy2.provider.ConstantProvider;
import org.apache.commons.proxy2.stub.StubConfigurer;
import org.apache.commons.proxy2.stub.StubProxyFactory;
import org.junit.Before;
import org.junit.Test;

import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.Iterator;

import static org.junit.Assert.*;
import static org.junit.Assume.assumeTrue;

/**
* Test {@link StubProxyFactory}.
*/
@@ -17,9 +17,9 @@

package org.apache.commons.proxy2.stub;

import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import org.apache.commons.lang3.reflect.FieldUtils;
import org.junit.Before;
import org.junit.Test;

import java.lang.annotation.Annotation;
import java.lang.annotation.Retention;
@@ -28,9 +28,7 @@
import java.util.HashMap;
import java.util.Map;

import org.apache.commons.lang3.reflect.FieldUtils;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;

/**
* Test {@link AnnotationFactory}.
@@ -17,11 +17,10 @@

package org.apache.commons.proxy2.stub;

import static org.junit.Assert.assertEquals;

import org.apache.commons.proxy2.stub.StubConfigurer;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

/**
* Test StubConfigurer stubType calculation.
*/
@@ -17,16 +17,15 @@

package org.apache.commons.proxy2;

import static org.junit.Assert.*;

import java.lang.reflect.Proxy;

import org.apache.commons.proxy2.ProxyFactory;
import org.apache.commons.proxy2.ProxyUtils;
import org.apache.commons.proxy2.invoker.NullInvoker;
import org.junit.Before;
import org.junit.Test;

import java.lang.reflect.Proxy;

import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

/**
* Test the default ProxyFactory provided by {@link ProxyUtils}.
*/

0 comments on commit 26a73ba

Please sign in to comment.