You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2014/02/20 20:11:34 UTC
svn commit: r1570311 -
/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/AccessibleObjectsRegistry.java
Author: britter
Date: Thu Feb 20 19:11:33 2014
New Revision: 1570311
URL: http://svn.apache.org/r1570311
Log:
SANDBOX-462: Refactoring of AccessibleObjectsRegistry. Better variable name. Thanks to André Diermann.
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=1570311&r1=1570310&r2=1570311&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 Thu Feb 20 19:11:33 2014
@@ -487,7 +487,7 @@ abstract class AccessibleObjectsRegistry
private final String methodName;
- private final Class<?>[] paramTypes;
+ private final Class<?>[] parameterTypes;
private final boolean exact;
@@ -498,10 +498,10 @@ abstract class AccessibleObjectsRegistry
*
* @param type the class to reflect, must not be null
* @param methodName the method name to obtain
- * @param paramTypes the array of classes representing the paramater types
+ * @param parameterTypes the array of classes representing the parameter types
* @param exact whether the match has to be exact.
*/
- public AccessibleObjectDescriptor( boolean exact, Class<?> type, String methodName, Class<?>... paramTypes )
+ public AccessibleObjectDescriptor( boolean exact, Class<?> type, String methodName, Class<?>... parameterTypes)
{
final int prime = 31;
int hashCode = 1;
@@ -515,8 +515,8 @@ abstract class AccessibleObjectsRegistry
this.methodName = methodName;
hashCode = prime * hashCode + ( ( methodName == null ) ? 0 : methodName.hashCode() );
- this.paramTypes = paramTypes;
- hashCode = prime * hashCode + Arrays.hashCode( paramTypes );
+ this.parameterTypes = parameterTypes;
+ hashCode = prime * hashCode + Arrays.hashCode(parameterTypes);
this.hashCode = hashCode;
}
@@ -564,7 +564,7 @@ abstract class AccessibleObjectsRegistry
return false;
}
- if ( !Arrays.equals( paramTypes, other.paramTypes ) )
+ if ( !Arrays.equals(parameterTypes, other.parameterTypes) )
{
return false;
}