commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1442373 - /commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/DefaultMappedPropertyGetterAccessor.java
Date Mon, 04 Feb 2013 21:27:53 GMT
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()
);
+        }
+    }
+
 }



Mime
View raw message