You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by jc...@apache.org on 2013/07/27 03:31:03 UTC

svn commit: r1507546 - in /commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2: Interceptor.java Invocation.java Invoker.java ObjectProvider.java ProxyFactory.java impl/ProxyClassGenerator.java

Author: jcarman
Date: Sat Jul 27 01:31:03 2013
New Revision: 1507546

URL: http://svn.apache.org/r1507546
Log:
Removing redundant modifiers.

Modified:
    commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/Interceptor.java
    commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/Invocation.java
    commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/Invoker.java
    commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/ObjectProvider.java
    commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/ProxyFactory.java
    commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/impl/ProxyClassGenerator.java

Modified: commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/Interceptor.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/Interceptor.java?rev=1507546&r1=1507545&r2=1507546&view=diff
==============================================================================
--- commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/Interceptor.java (original)
+++ commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/Interceptor.java Sat Jul 27 01:31:03 2013
@@ -37,5 +37,5 @@ public interface Interceptor extends Ser
      * @return return value of the method
      * @throws Throwable
      */
-    public Object intercept( Invocation invocation ) throws Throwable;
+    Object intercept( Invocation invocation ) throws Throwable;
 }

Modified: commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/Invocation.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/Invocation.java?rev=1507546&r1=1507545&r2=1507546&view=diff
==============================================================================
--- commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/Invocation.java (original)
+++ commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/Invocation.java Sat Jul 27 01:31:03 2013
@@ -37,21 +37,21 @@ public interface Invocation
      *
      * @return the arguments being passed to this method invocation
      */
-    public Object[] getArguments();
+    Object[] getArguments();
 
     /**
      * Returns the method being called.
      *
      * @return the method being called
      */
-    public Method getMethod();
+    Method getMethod();
 
     /**
      * Returns the proxy object on which this invocation was invoked.
      *
      * @return the proxy object on which this invocation was invoked
      */
-    public Object getProxy();
+    Object getProxy();
 
     /**
      * Called in order to let the invocation proceed.
@@ -59,5 +59,5 @@ public interface Invocation
      * @return the return value of the invocation
      * @throws Throwable any exception or error that was thrown as a result of this invocation
      */
-    public Object proceed() throws Throwable;
+    Object proceed() throws Throwable;
 }

Modified: commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/Invoker.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/Invoker.java?rev=1507546&r1=1507545&r2=1507546&view=diff
==============================================================================
--- commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/Invoker.java (original)
+++ commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/Invoker.java Sat Jul 27 01:31:03 2013
@@ -42,5 +42,5 @@ public interface Invoker extends Seriali
      * @return the return value
      * @throws Throwable thrown by the implementation
      */
-    public Object invoke( Object proxy, Method method, Object[] arguments ) throws Throwable;
+    Object invoke( Object proxy, Method method, Object[] arguments ) throws Throwable;
 }

Modified: commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/ObjectProvider.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/ObjectProvider.java?rev=1507546&r1=1507545&r2=1507546&view=diff
==============================================================================
--- commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/ObjectProvider.java (original)
+++ commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/ObjectProvider.java Sat Jul 27 01:31:03 2013
@@ -36,5 +36,5 @@ public interface ObjectProvider<T>
      *
      * @return the object on which the method should be called
      */
-    public T getObject();
+    T getObject();
 }

Modified: commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/ProxyFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/ProxyFactory.java?rev=1507546&r1=1507545&r2=1507546&view=diff
==============================================================================
--- commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/ProxyFactory.java (original)
+++ commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/ProxyFactory.java Sat Jul 27 01:31:03 2013
@@ -33,7 +33,7 @@ public interface ProxyFactory
      * @param proxyClasses the proxy2 classes
      * @return boolean
      */
-    public boolean canProxy( Class<?>... proxyClasses );
+    boolean canProxy( Class<?>... proxyClasses );
 
     /**
      * Creates a proxy which delegates to the object provided by <code>delegateProvider</code>.  The proxy will be
@@ -43,7 +43,7 @@ public interface ProxyFactory
      * @param proxyClasses     the interfaces that the proxy should implement
      * @return a proxy which delegates to the object provided by the target object provider
      */
-    public <T> T createDelegatorProxy( ObjectProvider<?> delegateProvider, Class<?>... proxyClasses );
+    <T> T createDelegatorProxy( ObjectProvider<?> delegateProvider, Class<?>... proxyClasses );
 
     /**
      * Creates a proxy which delegates to the object provided by <code>delegateProvider</code>.
@@ -53,7 +53,7 @@ public interface ProxyFactory
      * @param proxyClasses     the interfaces that the proxy should implement
      * @return a proxy which delegates to the object provided by the target <code>delegateProvider>
      */
-    public <T> T createDelegatorProxy( ClassLoader classLoader, ObjectProvider<?> delegateProvider,
+    <T> T createDelegatorProxy( ClassLoader classLoader, ObjectProvider<?> delegateProvider,
                                         Class<?>... proxyClasses );
 
     /**
@@ -66,7 +66,7 @@ public interface ProxyFactory
      * @return a proxy which passes through a {@link Interceptor interceptor} before eventually reaching the
      *         <code>target</code> object.
      */
-    public <T> T createInterceptorProxy( Object target, Interceptor interceptor,
+    <T> T createInterceptorProxy( Object target, Interceptor interceptor,
                                           Class<?>... proxyClasses );
 
     /**
@@ -80,7 +80,7 @@ public interface ProxyFactory
      * @return a proxy which passes through a {@link Interceptor interceptor} before eventually reaching the
      *         <code>target</code> object.
      */
-    public <T> T createInterceptorProxy( ClassLoader classLoader, Object target, Interceptor interceptor,
+    <T> T createInterceptorProxy( ClassLoader classLoader, Object target, Interceptor interceptor,
                                           Class<?>... proxyClasses );
 
     /**
@@ -91,7 +91,7 @@ public interface ProxyFactory
      * @param proxyClasses the interfaces that the proxy should implement
      * @return a proxy which uses the provided {@link Invoker} to handle all method invocations
      */
-    public <T> T createInvokerProxy( Invoker invoker, Class<?>... proxyClasses );
+    <T> T createInvokerProxy( Invoker invoker, Class<?>... proxyClasses );
 
     /**
      * Creates a proxy which uses the provided {@link Invoker} to handle all method invocations.
@@ -101,6 +101,6 @@ public interface ProxyFactory
      * @param proxyClasses the interfaces that the proxy should implement
      * @return a proxy which uses the provided {@link Invoker} to handle all method invocations
      */
-    public <T> T createInvokerProxy( ClassLoader classLoader, Invoker invoker,
+    <T> T createInvokerProxy( ClassLoader classLoader, Invoker invoker,
                                       Class<?>... proxyClasses );
 }

Modified: commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/impl/ProxyClassGenerator.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/impl/ProxyClassGenerator.java?rev=1507546&r1=1507545&r2=1507546&view=diff
==============================================================================
--- commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/impl/ProxyClassGenerator.java (original)
+++ commons/proper/proxy/branches/version-2.0-work/core/src/main/java/org/apache/commons/proxy2/impl/ProxyClassGenerator.java Sat Jul 27 01:31:03 2013
@@ -41,5 +41,5 @@ public interface ProxyClassGenerator
      * @param proxyClasses the proxy classes
      * @return the dynamically generated proxy class
      */
-    public Class<?> generateProxyClass( ClassLoader classLoader, Class<?>... proxyClasses );
+    Class<?> generateProxyClass( ClassLoader classLoader, Class<?>... proxyClasses );
 }