commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1582328 - in /commons/proper/proxy/trunk: asm4/src/main/java/org/apache/commons/proxy2/asm4/ cglib/src/main/java/org/apache/commons/proxy2/cglib/ core/src/main/java/org/apache/commons/proxy2/impl/ core/src/main/java/org/apache/commons/prox...
Date Thu, 27 Mar 2014 14:45:19 GMT
Author: sebb
Date: Thu Mar 27 14:45:18 2014
New Revision: 1582328

URL: http://svn.apache.org/r1582328
Log:
+= @Override for interface implementations (Java 1.6)

Modified:
    commons/proper/proxy/trunk/asm4/src/main/java/org/apache/commons/proxy2/asm4/ASM4ProxyFactory.java
    commons/proper/proxy/trunk/cglib/src/main/java/org/apache/commons/proxy2/cglib/CglibProxyFactory.java
    commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/impl/AbstractProxyFactory.java
    commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/invoker/DuckTypingInvoker.java
    commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/invoker/InvocationHandlerAdapter.java
    commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/invoker/NullInvoker.java
    commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/invoker/recorder/InvocationRecorder.java
    commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/provider/BeanProvider.java
    commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/provider/CloningProvider.java
    commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/provider/ConstantProvider.java
    commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/provider/ProviderDecorator.java
    commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/stub/AnnotationBuilder.java
    commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/stub/StubBuilder.java
    commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/AbstractProxyFactoryTestCase.java
    commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/util/AbstractEcho.java
    commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/util/EchoImpl.java
    commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/util/SuffixInterceptor.java
    commons/proper/proxy/trunk/javassist/src/main/java/org/apache/commons/proxy2/javassist/JavassistInvocation.java
    commons/proper/proxy/trunk/javassist/src/main/java/org/apache/commons/proxy2/javassist/JavassistProxyFactory.java

Modified: commons/proper/proxy/trunk/asm4/src/main/java/org/apache/commons/proxy2/asm4/ASM4ProxyFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/asm4/src/main/java/org/apache/commons/proxy2/asm4/ASM4ProxyFactory.java?rev=1582328&r1=1582327&r2=1582328&view=diff
==============================================================================
--- commons/proper/proxy/trunk/asm4/src/main/java/org/apache/commons/proxy2/asm4/ASM4ProxyFactory.java
(original)
+++ commons/proper/proxy/trunk/asm4/src/main/java/org/apache/commons/proxy2/asm4/ASM4ProxyFactory.java
Thu Mar 27 14:45:18 2014
@@ -383,6 +383,7 @@ public class ASM4ProxyFactory extends Ab
     @SuppressWarnings("serial")
     private abstract static class AbstractInvoker implements Invoker, Serializable
     {
+        @Override
         public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
         {
             if (isHashCode(method))
@@ -444,21 +445,25 @@ public class ASM4ProxyFactory extends Ab
             this.target = target;
         }
 
+        @Override
         public Object[] getArguments()
         {
             return arguments;
         }
 
+        @Override
         public Method getMethod()
         {
             return method;
         }
 
+        @Override
         public Object getProxy()
         {
             return proxy;
         }
 
+        @Override
         public Object proceed() throws Throwable
         {
             try

Modified: commons/proper/proxy/trunk/cglib/src/main/java/org/apache/commons/proxy2/cglib/CglibProxyFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/cglib/src/main/java/org/apache/commons/proxy2/cglib/CglibProxyFactory.java?rev=1582328&r1=1582327&r2=1582328&view=diff
==============================================================================
--- commons/proper/proxy/trunk/cglib/src/main/java/org/apache/commons/proxy2/cglib/CglibProxyFactory.java
(original)
+++ commons/proper/proxy/trunk/cglib/src/main/java/org/apache/commons/proxy2/cglib/CglibProxyFactory.java
Thu Mar 27 14:45:18 2014
@@ -54,6 +54,7 @@ public class CglibProxyFactory extends A
     /**
      * {@inheritDoc}
      */
+    @Override
     @SuppressWarnings("unchecked")
     public <T> T createDelegatorProxy(ClassLoader classLoader, ObjectProvider<?>
targetProvider,
             Class<?>... proxyClasses)
@@ -71,6 +72,7 @@ public class CglibProxyFactory extends A
     /**
      * {@inheritDoc}
      */
+    @Override
     @SuppressWarnings("unchecked")
     public <T> T createInterceptorProxy(ClassLoader classLoader, Object target, Interceptor
interceptor,
             Class<?>... proxyClasses)
@@ -88,6 +90,7 @@ public class CglibProxyFactory extends A
     /**
      * {@inheritDoc}
      */
+    @Override
     @SuppressWarnings("unchecked")
     public <T> T createInvokerProxy(ClassLoader classLoader, Invoker invoker, Class<?>...
proxyClasses)
     {
@@ -107,6 +110,7 @@ public class CglibProxyFactory extends A
 
     private static class CglibProxyFactoryCallbackFilter implements CallbackFilter
     {
+        @Override
         public int accept(Method method)
         {
             if (ProxyUtils.isEqualsMethod(method))
@@ -129,6 +133,7 @@ public class CglibProxyFactory extends A
         /** Serialization version */
         private static final long serialVersionUID = 1L;
 
+        @Override
         public Object intercept(Object o, Method method, Object[] objects, MethodProxy methodProxy)
throws Throwable
         {
             return o == objects[0];
@@ -140,6 +145,7 @@ public class CglibProxyFactory extends A
         /** Serialization version */
         private static final long serialVersionUID = 1L;
 
+        @Override
         public Object intercept(Object o, Method method, Object[] objects, MethodProxy methodProxy)
throws Throwable
         {
             return System.identityHashCode(o);
@@ -160,6 +166,7 @@ public class CglibProxyFactory extends A
             this.target = target;
         }
 
+        @Override
         public Object intercept(Object object, Method method, Object[] args, MethodProxy
methodProxy) throws Throwable
         {
             return inner.intercept(new MethodProxyInvocation(object, target, method, args,
methodProxy));
@@ -178,6 +185,7 @@ public class CglibProxyFactory extends A
             this.original = original;
         }
 
+        @Override
         public Object invoke(Object object, Method method, Object[] objects) throws Throwable
         {
             return original.invoke(object, method, objects);
@@ -201,21 +209,25 @@ public class CglibProxyFactory extends A
             this.args = ObjectUtils.defaultIfNull(ArrayUtils.clone(args), ProxyUtils.EMPTY_ARGUMENTS);
         }
 
+        @Override
         public Method getMethod()
         {
             return method;
         }
 
+        @Override
         public Object[] getArguments()
         {
             return args;
         }
 
+        @Override
         public Object proceed() throws Throwable
         {
             return methodProxy.invoke(target, args);
         }
 
+        @Override
         public Object getProxy()
         {
             return proxy;
@@ -234,6 +246,7 @@ public class CglibProxyFactory extends A
             this.delegateProvider = delegateProvider;
         }
 
+        @Override
         public Object loadObject()
         {
             return delegateProvider.getObject();

Modified: commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/impl/AbstractProxyFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/impl/AbstractProxyFactory.java?rev=1582328&r1=1582327&r2=1582328&view=diff
==============================================================================
--- commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/impl/AbstractProxyFactory.java
(original)
+++ commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/impl/AbstractProxyFactory.java
Thu Mar 27 14:45:18 2014
@@ -35,6 +35,7 @@ public abstract class AbstractProxyFacto
      *            the proxy classes
      * @return true if all <code>proxyClasses</code> are interfaces
      */
+    @Override
     public boolean canProxy(Class<?>... proxyClasses)
     {
         for (Class<?> proxyClass : proxyClasses)
@@ -57,6 +58,7 @@ public abstract class AbstractProxyFacto
      *            the interfaces that the proxy should implement
      * @return a proxy which delegates to the object provided by the target object provider
      */
+    @Override
     public <T> T createDelegatorProxy(ObjectProvider<?> delegateProvider, Class<?>...
proxyClasses)
     {
         return createDelegatorProxy(Thread.currentThread().getContextClassLoader(), delegateProvider,
proxyClasses);
@@ -75,6 +77,7 @@ public abstract class AbstractProxyFacto
      * @return a proxy which passes through a {@link Interceptor interceptor} before eventually
reaching the
      *         <code>target</code> object.
      */
+    @Override
     public <T> T createInterceptorProxy(Object target, Interceptor interceptor, Class<?>...
proxyClasses)
     {
         return createInterceptorProxy(Thread.currentThread().getContextClassLoader(), target,
interceptor,
@@ -91,6 +94,7 @@ public abstract class AbstractProxyFacto
      *            the interfaces that the proxy should implement
      * @return a proxy which uses the provided {@link Invoker} to handle all method invocations
      */
+    @Override
     public <T> T createInvokerProxy(Invoker invoker, Class<?>... proxyClasses)
     {
         return createInvokerProxy(Thread.currentThread().getContextClassLoader(), invoker,
proxyClasses);

Modified: commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/invoker/DuckTypingInvoker.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/invoker/DuckTypingInvoker.java?rev=1582328&r1=1582327&r2=1582328&view=diff
==============================================================================
--- commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/invoker/DuckTypingInvoker.java
(original)
+++ commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/invoker/DuckTypingInvoker.java
Thu Mar 27 14:45:18 2014
@@ -84,6 +84,7 @@ public class DuckTypingInvoker implement
     /**
      * {@inheritDoc}
      */
+    @Override
     public Object invoke(final Object proxy, final Method method, final Object[] arguments)
throws Throwable
     {
         final Object target = targetProvider.getObject();

Modified: commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/invoker/InvocationHandlerAdapter.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/invoker/InvocationHandlerAdapter.java?rev=1582328&r1=1582327&r2=1582328&view=diff
==============================================================================
--- commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/invoker/InvocationHandlerAdapter.java
(original)
+++ commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/invoker/InvocationHandlerAdapter.java
Thu Mar 27 14:45:18 2014
@@ -60,6 +60,7 @@ public class InvocationHandlerAdapter im
     /**
      * {@inheritDoc}
      */
+    @Override
     public Object invoke(Object proxy, Method method, Object[] arguments) throws Throwable
     {
         return invocationHandler.invoke(proxy, method, arguments);

Modified: commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/invoker/NullInvoker.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/invoker/NullInvoker.java?rev=1582328&r1=1582327&r2=1582328&view=diff
==============================================================================
--- commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/invoker/NullInvoker.java
(original)
+++ commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/invoker/NullInvoker.java
Thu Mar 27 14:45:18 2014
@@ -47,6 +47,7 @@ public class NullInvoker implements Invo
     /**
      * {@inheritDoc}
      */
+    @Override
     public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
     {
         final Class<?> returnType = method.getReturnType();

Modified: commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/invoker/recorder/InvocationRecorder.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/invoker/recorder/InvocationRecorder.java?rev=1582328&r1=1582327&r2=1582328&view=diff
==============================================================================
--- commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/invoker/recorder/InvocationRecorder.java
(original)
+++ commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/invoker/recorder/InvocationRecorder.java
Thu Mar 27 14:45:18 2014
@@ -104,6 +104,7 @@ public class InvocationRecorder
         /**
          * {@inheritDoc}
          */
+        @Override
         public Object invoke(Object o, Method method, Object[] args) throws Throwable
         {
             recordedInvocations.add(new RecordedInvocation(method, args));

Modified: commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/provider/BeanProvider.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/provider/BeanProvider.java?rev=1582328&r1=1582327&r2=1582328&view=diff
==============================================================================
--- commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/provider/BeanProvider.java
(original)
+++ commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/provider/BeanProvider.java
Thu Mar 27 14:45:18 2014
@@ -63,6 +63,7 @@ public class BeanProvider<T> implements 
     /**
      * {@inheritDoc}
      */
+    @Override
     public T getObject()
     {
         try

Modified: commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/provider/CloningProvider.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/provider/CloningProvider.java?rev=1582328&r1=1582327&r2=1582328&view=diff
==============================================================================
--- commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/provider/CloningProvider.java
(original)
+++ commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/provider/CloningProvider.java
Thu Mar 27 14:45:18 2014
@@ -69,6 +69,7 @@ public class CloningProvider<T extends C
     /**
      * {@inheritDoc}
      */
+    @Override
     @SuppressWarnings("unchecked")
     public T getObject()
     {

Modified: commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/provider/ConstantProvider.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/provider/ConstantProvider.java?rev=1582328&r1=1582327&r2=1582328&view=diff
==============================================================================
--- commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/provider/ConstantProvider.java
(original)
+++ commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/provider/ConstantProvider.java
Thu Mar 27 14:45:18 2014
@@ -59,6 +59,7 @@ public class ConstantProvider<T> impleme
     /**
      * {@inheritDoc}
      */
+    @Override
     public T getObject()
     {
         return constant;

Modified: commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/provider/ProviderDecorator.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/provider/ProviderDecorator.java?rev=1582328&r1=1582327&r2=1582328&view=diff
==============================================================================
--- commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/provider/ProviderDecorator.java
(original)
+++ commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/provider/ProviderDecorator.java
Thu Mar 27 14:45:18 2014
@@ -61,6 +61,7 @@ public class ProviderDecorator<T> implem
     /**
      * {@inheritDoc}
      */
+    @Override
     public T getObject()
     {
         return inner.getObject();

Modified: commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/stub/AnnotationBuilder.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/stub/AnnotationBuilder.java?rev=1582328&r1=1582327&r2=1582328&view=diff
==============================================================================
--- commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/stub/AnnotationBuilder.java
(original)
+++ commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/stub/AnnotationBuilder.java
Thu Mar 27 14:45:18 2014
@@ -60,6 +60,7 @@ public class AnnotationBuilder<A extends
         /**
          * {@inheritDoc}
          */
+        @Override
         public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
         {
             if (ProxyUtils.isHashCode(method))
@@ -94,21 +95,25 @@ public class AnnotationBuilder<A extends
             this.target = target;
         }
 
+        @Override
         public Object[] getArguments()
         {
             return arguments;
         }
 
+        @Override
         public Method getMethod()
         {
             return method;
         }
 
+        @Override
         public Object getProxy()
         {
             return target;
         }
 
+        @Override
         public Object proceed() throws Throwable
         {
             try
@@ -124,6 +129,7 @@ public class AnnotationBuilder<A extends
 
     private static final ProxyFactory PROXY_FACTORY = new AbstractProxyFactory()
     {
+        @Override
         @SuppressWarnings("unchecked")
         public <T> T createInvokerProxy(ClassLoader classLoader, final Invoker invoker,
Class<?>... proxyClasses)
         {
@@ -137,6 +143,7 @@ public class AnnotationBuilder<A extends
             });
         }
 
+        @Override
         @SuppressWarnings("unchecked")
         public <T> T createInterceptorProxy(ClassLoader classLoader, Object target,
Interceptor interceptor,
                 Class<?>... proxyClasses)
@@ -145,6 +152,7 @@ public class AnnotationBuilder<A extends
                     ObjectProviderUtils.constant(target), interceptor));
         }
 
+        @Override
         @SuppressWarnings("unchecked")
         public <T> T createDelegatorProxy(ClassLoader classLoader, final ObjectProvider<?>
delegateProvider,
                 Class<?>... proxyClasses)

Modified: commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/stub/StubBuilder.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/stub/StubBuilder.java?rev=1582328&r1=1582327&r2=1582328&view=diff
==============================================================================
--- commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/stub/StubBuilder.java
(original)
+++ commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/stub/StubBuilder.java
Thu Mar 27 14:45:18 2014
@@ -76,6 +76,7 @@ public class StubBuilder<T> implements B
     // Other Methods
     //******************************************************************************************************************
 
+    @Override
     public T build()
     {
         return proxyFactory.createInterceptorProxy(target, switchInterceptor,

Modified: commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/AbstractProxyFactoryTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/AbstractProxyFactoryTestCase.java?rev=1582328&r1=1582327&r2=1582328&view=diff
==============================================================================
--- commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/AbstractProxyFactoryTestCase.java
(original)
+++ commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/AbstractProxyFactoryTestCase.java
Thu Mar 27 14:45:18 2014
@@ -357,6 +357,7 @@ public abstract class AbstractProxyFacto
 
     private static class ChangeArgumentInterceptor implements Interceptor
     {
+        @Override
         public Object intercept(Invocation methodInvocation) throws Throwable
         {
             methodInvocation.getArguments()[0] = "something different";
@@ -371,6 +372,7 @@ public abstract class AbstractProxyFacto
         private Object proxy;
         private Class<?> invocationClass;
 
+        @Override
         public Object intercept(Invocation methodInvocation) throws Throwable
         {
             arguments = methodInvocation.getArguments();
@@ -387,6 +389,7 @@ public abstract class AbstractProxyFacto
         private Object[] args;
         private Object proxy;
 
+        @Override
         public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
         {
             this.proxy = proxy;
@@ -398,6 +401,7 @@ public abstract class AbstractProxyFacto
 
     protected static class NoOpMethodInterceptor implements Interceptor, Serializable
     {
+        @Override
         public Object intercept(Invocation methodInvocation) throws Throwable
         {
             return methodInvocation.proceed();

Modified: commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/util/AbstractEcho.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/util/AbstractEcho.java?rev=1582328&r1=1582327&r2=1582328&view=diff
==============================================================================
--- commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/util/AbstractEcho.java
(original)
+++ commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/util/AbstractEcho.java
Thu Mar 27 14:45:18 2014
@@ -30,6 +30,7 @@ public abstract class AbstractEcho imple
     // Echo Implementation
     //**********************************************************************************************************************
 
+    @Override
     public String echoBack(String message)
     {
         return message;

Modified: commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/util/EchoImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/util/EchoImpl.java?rev=1582328&r1=1582327&r2=1582328&view=diff
==============================================================================
--- commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/util/EchoImpl.java
(original)
+++ commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/util/EchoImpl.java
Thu Mar 27 14:45:18 2014
@@ -36,15 +36,18 @@ public class EchoImpl extends AbstractEc
     // Echo Implementation
     //**********************************************************************************************************************
 
+    @Override
     public void echo()
     {
     }
 
+    @Override
     public boolean echoBack(boolean b)
     {
         return b;
     }
 
+    @Override
     public String echoBack(String[] messages)
     {
         final StringBuilder sb = new StringBuilder();
@@ -56,6 +59,7 @@ public class EchoImpl extends AbstractEc
         return sb.toString();
     }
 
+    @Override
     public String echoBack(String[][] messages)
     {
         final StringBuilder sb = new StringBuilder();
@@ -66,6 +70,7 @@ public class EchoImpl extends AbstractEc
         return sb.toString();
     }
 
+    @Override
     public String echoBack(String[][][] messages)
     {
         final StringBuilder sb = new StringBuilder();
@@ -76,21 +81,25 @@ public class EchoImpl extends AbstractEc
         return sb.toString();
     }
 
+    @Override
     public int echoBack(int i)
     {
         return i;
     }
 
+    @Override
     public String echoBack(String message1, String message2)
     {
         return message1 + message2;
     }
 
+    @Override
     public void illegalArgument()
     {
         throw new IllegalArgumentException("dummy message");
     }
 
+    @Override
     public void ioException() throws IOException
     {
         throw new IOException("dummy message");

Modified: commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/util/SuffixInterceptor.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/util/SuffixInterceptor.java?rev=1582328&r1=1582327&r2=1582328&view=diff
==============================================================================
--- commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/util/SuffixInterceptor.java
(original)
+++ commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/util/SuffixInterceptor.java
Thu Mar 27 14:45:18 2014
@@ -46,6 +46,7 @@ public class SuffixInterceptor implement
     // Interceptor Implementation
     //**********************************************************************************************************************
 
+    @Override
     public Object intercept(Invocation methodInvocation) throws Throwable
     {
         Object result = methodInvocation.proceed();

Modified: commons/proper/proxy/trunk/javassist/src/main/java/org/apache/commons/proxy2/javassist/JavassistInvocation.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/javassist/src/main/java/org/apache/commons/proxy2/javassist/JavassistInvocation.java?rev=1582328&r1=1582327&r2=1582328&view=diff
==============================================================================
--- commons/proper/proxy/trunk/javassist/src/main/java/org/apache/commons/proxy2/javassist/JavassistInvocation.java
(original)
+++ commons/proper/proxy/trunk/javassist/src/main/java/org/apache/commons/proxy2/javassist/JavassistInvocation.java
Thu Mar 27 14:45:18 2014
@@ -223,16 +223,19 @@ public abstract class JavassistInvocatio
         return target;
     }
 
+    @Override
     public Object[] getArguments()
     {
         return arguments;
     }
 
+    @Override
     public Method getMethod()
     {
         return method;
     }
 
+    @Override
     public Object getProxy()
     {
         return proxy;

Modified: commons/proper/proxy/trunk/javassist/src/main/java/org/apache/commons/proxy2/javassist/JavassistProxyFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/javassist/src/main/java/org/apache/commons/proxy2/javassist/JavassistProxyFactory.java?rev=1582328&r1=1582327&r2=1582328&view=diff
==============================================================================
--- commons/proper/proxy/trunk/javassist/src/main/java/org/apache/commons/proxy2/javassist/JavassistProxyFactory.java
(original)
+++ commons/proper/proxy/trunk/javassist/src/main/java/org/apache/commons/proxy2/javassist/JavassistProxyFactory.java
Thu Mar 27 14:45:18 2014
@@ -68,6 +68,7 @@ public class JavassistProxyFactory exten
     /**
      * {@inheritDoc}
      */
+    @Override
     @SuppressWarnings("unchecked")
     public <T> T createDelegatorProxy(ClassLoader classLoader, ObjectProvider<?>
targetProvider,
             Class<?>... proxyClasses)
@@ -87,6 +88,7 @@ public class JavassistProxyFactory exten
     /**
      * {@inheritDoc}
      */
+    @Override
     @SuppressWarnings("unchecked")
     public <T> T createInterceptorProxy(ClassLoader classLoader, Object target, Interceptor
interceptor,
             Class<?>... proxyClasses)
@@ -106,6 +108,7 @@ public class JavassistProxyFactory exten
     /**
      * {@inheritDoc}
      */
+    @Override
     @SuppressWarnings("unchecked")
     public <T> T createInvokerProxy(ClassLoader classLoader, Invoker invoker, Class<?>...
proxyClasses)
     {
@@ -127,6 +130,7 @@ public class JavassistProxyFactory exten
 
     private static class DelegatingProxyClassGenerator extends AbstractProxyClassGenerator
     {
+        @Override
         public Class<?> generateProxyClass(ClassLoader classLoader, Class<?>...
proxyClasses)
         {
             try
@@ -165,6 +169,7 @@ public class JavassistProxyFactory exten
 
     private static class InterceptorProxyClassGenerator extends AbstractProxyClassGenerator
     {
+        @Override
         public Class<?> generateProxyClass(ClassLoader classLoader, Class<?>...
proxyClasses)
         {
             try
@@ -229,6 +234,7 @@ public class JavassistProxyFactory exten
 
     private static class InvokerProxyClassGenerator extends AbstractProxyClassGenerator
     {
+        @Override
         public Class<?> generateProxyClass(ClassLoader classLoader, Class<?>...
proxyClasses)
         {
             try



Mime
View raw message