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/07 21:56:59 UTC

svn commit: r1443722 - /commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyDescriptorsRegistry.java

Author: britter
Date: Thu Feb  7 20:56:59 2013
New Revision: 1443722

URL: http://svn.apache.org/r1443722
Log:
Fixed several checkstyle issues. No functional changes

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

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyDescriptorsRegistry.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyDescriptorsRegistry.java?rev=1443722&r1=1443721&r2=1443722&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyDescriptorsRegistry.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyDescriptorsRegistry.java Thu Feb  7 20:56:59 2013
@@ -97,7 +97,8 @@ final class PropertyDescriptorsRegistry
         }
     }
 
-    private Collection<PropertyDescriptor> getMappedPropertyDescriptors( Class<?> beanType ) throws IntrospectionException
+    private Collection<PropertyDescriptor> getMappedPropertyDescriptors( Class<?> beanType )
+        throws IntrospectionException
     {
         Map<String, PropertyDescriptor> mappedPropertyDescirptors = new HashMap<String, PropertyDescriptor>();
         for ( Method method : beanType.getMethods() )
@@ -105,10 +106,10 @@ final class PropertyDescriptorsRegistry
             if ( MethodUtil.isMappedGetter( method ) || MethodUtil.isMappedSetter( method ) )
             {
                 String propertyName = method.getName().substring( 3 );
-                propertyName = Character.toLowerCase(propertyName.charAt(0)) + propertyName.substring(1);
+                propertyName = Character.toLowerCase( propertyName.charAt( 0 ) ) + propertyName.substring( 1 );
                 if ( !mappedPropertyDescirptors.containsKey( propertyName ) )
                 {
-                    mappedPropertyDescirptors.put( propertyName, new MappedPropertyDescriptor( propertyName , beanType ));
+                    mappedPropertyDescirptors.put( propertyName, new MappedPropertyDescriptor( propertyName, beanType ) );
                 }
             }
         }