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 2013/02/04 22:27:53 UTC
svn commit: r1442373 -
/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/DefaultMappedPropertyGetterAccessor.java
Author: britter
Date: Mon Feb 4 21:27:53 2013
New Revision: 1442373
URL: http://svn.apache.org/viewvc?rev=1442373&view=rev
Log:
order methods as they are invoked - no functional changes
Modified:
commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/DefaultMappedPropertyGetterAccessor.java
Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/DefaultMappedPropertyGetterAccessor.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/DefaultMappedPropertyGetterAccessor.java?rev=1442373&r1=1442372&r2=1442373&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/DefaultMappedPropertyGetterAccessor.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/DefaultMappedPropertyGetterAccessor.java Mon Feb 4 21:27:53 2013
@@ -55,18 +55,6 @@ class DefaultMappedPropertyGetterAccesso
return wrapInAccessor( mappedValue );
}
- private BeanAccessor<?> wrapInAccessor( Object mappedValue )
- {
- if ( mappedValue != null )
- {
- return new DefaultBeanAccessor<Object>( mappedValue );
- }
- else
- {
- return new NullBeanAccessor<Object>( bean.getClass().getName(), mappedReadMethod.getName() );
- }
- }
-
private Object invokeGetter( String key )
{
try
@@ -83,4 +71,16 @@ class DefaultMappedPropertyGetterAccesso
}
}
+ private BeanAccessor<?> wrapInAccessor( Object mappedValue )
+ {
+ if ( mappedValue != null )
+ {
+ return new DefaultBeanAccessor<Object>( mappedValue );
+ }
+ else
+ {
+ return new NullBeanAccessor<Object>( bean.getClass().getName(), mappedReadMethod.getName() );
+ }
+ }
+
}