commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1234359 - /commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/AccessibleObjectsRegistry.java
Date Sat, 21 Jan 2012 16:32:00 GMT
Author: simonetripodi
Date: Sat Jan 21 16:32:00 2012
New Revision: 1234359

URL: http://svn.apache.org/viewvc?rev=1234359&view=rev
Log:
put method now returns the storing AccessibleObject

Modified:
    commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/AccessibleObjectsRegistry.java

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/AccessibleObjectsRegistry.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/AccessibleObjectsRegistry.java?rev=1234359&r1=1234358&r2=1234359&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/AccessibleObjectsRegistry.java
(original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/AccessibleObjectsRegistry.java
Sat Jan 21 16:32:00 2012
@@ -54,10 +54,11 @@ final class AccessibleObjectsRegistry<AO
         // this class cannot be instantiated
     }
 
-    public void put( AO accessibleObject, boolean exact, Class<?> cls, String methodName,
Class<?>... paramTypes )
+    public AO put( AO accessibleObject, boolean exact, Class<?> cls, String methodName,
Class<?>... paramTypes )
     {
         cache.put( new AccessibleObjectDescriptor( exact, cls, methodName, paramTypes ),
                    new WeakReference<AO>( accessibleObject ) );
+        return accessibleObject;
     }
 
     public AO get( boolean exact, Class<?> cls, String methodName, Class<?>...
paramTypes )
@@ -71,7 +72,7 @@ final class AccessibleObjectsRegistry<AO
     }
 
     /**
-     * Represents the key to looking up a Method by reflection.
+     * Represents the key to looking up an AccessibleObject by reflection.
      */
     private static final class AccessibleObjectDescriptor
     {



Mime
View raw message