commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1592200 [3/9] - in /commons/sandbox/beanutils2/trunk: config/ src/changes/ src/main/java/org/apache/commons/beanutils2/ src/main/java/org/apache/commons/beanutils2/transformers/ src/test/java/org/apache/commons/beanutils2/ src/test/java/or...
Date Sat, 03 May 2014 13:14:55 GMT
Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/IndexedPropertySetterAccessor.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/IndexedPropertySetterAccessor.java?rev=1592200&r1=1592199&r2=1592200&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/IndexedPropertySetterAccessor.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/IndexedPropertySetterAccessor.java Sat May  3 13:14:53 2014
@@ -1,5 +1,3 @@
-package org.apache.commons.beanutils2;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -19,9 +17,10 @@ package org.apache.commons.beanutils2;
  * under the License.
  */
 
-public interface IndexedPropertySetterAccessor<B>
-{
+package org.apache.commons.beanutils2;
+
+public interface IndexedPropertySetterAccessor<B> {
 
-    BeanPropertySetter<B> at( int index );
+    BeanPropertySetter<B> at(int index);
 
 }

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MappedPropertyDescriptor.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MappedPropertyDescriptor.java?rev=1592200&r1=1592199&r2=1592200&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MappedPropertyDescriptor.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MappedPropertyDescriptor.java Sat May  3 13:14:53 2014
@@ -1,5 +1,3 @@
-package org.apache.commons.beanutils2;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -19,6 +17,8 @@ package org.apache.commons.beanutils2;
  * under the License.
  */
 
+package org.apache.commons.beanutils2;
+
 import java.beans.IntrospectionException;
 import java.beans.PropertyDescriptor;
 import java.lang.ref.Reference;
@@ -29,48 +29,43 @@ import java.lang.reflect.Modifier;
 
 /**
  * EXTRACTED FROM BeanUtils1
- *
+ * <p>
  * A MappedPropertyDescriptor describes one mapped property. Mapped properties are multivalued properties like indexed
  * properties but that are accessed with a String key instead of an index. Such property values are typically stored in
  * a Map collection. For this class to work properly, a mapped value must have getter and setter methods of the form
- * <p>
- * <code>get<strong>Property</strong>(String key)<code> and
- * <p><code>set<strong>Property</strong>(String key, Object value)<code>,
- * <p>where <code><strong>Property</strong></code> must be replaced by the name of the property.
+ * <code>get<strong>Property</strong>(String key)</code> and
+ * <code>set<strong>Property</strong>(String key, Object value)</code>,
+ * where <code><strong>Property</strong></code> must be replaced by the name of the property.</p>
  *
- * @see java.beans.PropertyDescriptor
  * @author Rey Francois
  * @author Gregor Rayman
  * @version $Revision: 806915 $ $Date: 2009-08-23 02:50:23 +0200 (Sun, 23 Aug 2009) $
+ * @see java.beans.PropertyDescriptor
  */
 
 public class MappedPropertyDescriptor
-    extends PropertyDescriptor
-{
+        extends PropertyDescriptor {
     // ----------------------------------------------------- Instance Variables
 
     /**
+     * The parameter types array for the reader method signature.
+     */
+    @SuppressWarnings("unchecked")
+    // we can not create a generic array
+    private static final Class<String>[] STRING_CLASS_PARAMETER = new Class[]{String.class};
+    /**
      * The underlying data type of the property we are describing.
      */
     private Reference<Class<?>> mappedPropertyTypeRef;
-
     /**
      * The reader method for this property (if any).
      */
     private MappedMethodReference mappedReadMethodRef;
-
     /**
      * The writer method for this property (if any).
      */
     private MappedMethodReference mappedWriteMethodRef;
 
-    /**
-     * The parameter types array for the reader method signature.
-     */
-    @SuppressWarnings( "unchecked" )
-    // we can not create a generic array
-    private static final Class<String>[] STRING_CLASS_PARAMETER = new Class[] { String.class };
-
     // ----------------------------------------------------------- Constructors
 
     /**
@@ -80,59 +75,49 @@ public class MappedPropertyDescriptor
      * property name should start with a lower case character, which will be capitalized in the method names.
      *
      * @param propertyName The programmatic name of the property.
-     * @param beanClass The Class object for the target bean. For example sun.beans.OurButton.class.
-     * @exception IntrospectionException if an exception occurs during introspection.
+     * @param beanClass    The Class object for the target bean. For example sun.beans.OurButton.class.
+     * @throws IntrospectionException if an exception occurs during introspection.
      */
-    public MappedPropertyDescriptor( String propertyName, Class<?> beanClass )
-        throws IntrospectionException
-    {
+    public MappedPropertyDescriptor(String propertyName, Class<?> beanClass)
+            throws IntrospectionException {
 
-        super( propertyName, null, null );
+        super(propertyName, null, null);
 
-        if ( propertyName == null || propertyName.length() == 0 )
-        {
-            throw new IntrospectionException( "bad property name: " + propertyName + " on class: "
-                + beanClass.getClass().getName() );
+        if (propertyName == null || propertyName.length() == 0) {
+            throw new IntrospectionException("bad property name: " + propertyName + " on class: "
+                    + beanClass.getClass().getName());
         }
 
-        setName( propertyName );
-        String base = capitalizePropertyName( propertyName );
+        setName(propertyName);
+        String base = capitalizePropertyName(propertyName);
 
         // Look for mapped read method and matching write method
         Method mappedReadMethod = null;
         Method mappedWriteMethod = null;
-        try
-        {
-            try
-            {
-                mappedReadMethod = getMethod( beanClass, "get" + base, STRING_CLASS_PARAMETER );
-            }
-            catch ( IntrospectionException e )
-            {
-                mappedReadMethod = getMethod( beanClass, "is" + base, STRING_CLASS_PARAMETER );
-            }
-            Class<?>[] params = { String.class, mappedReadMethod.getReturnType() };
-            mappedWriteMethod = getMethod( beanClass, "set" + base, params );
-        }
-        catch ( IntrospectionException e )
-        {
+        try {
+            try {
+                mappedReadMethod = getMethod(beanClass, "get" + base, STRING_CLASS_PARAMETER);
+            } catch (IntrospectionException e) {
+                mappedReadMethod = getMethod(beanClass, "is" + base, STRING_CLASS_PARAMETER);
+            }
+            Class<?>[] params = {String.class, mappedReadMethod.getReturnType()};
+            mappedWriteMethod = getMethod(beanClass, "set" + base, params);
+        } catch (IntrospectionException e) {
             /*
              * Swallow IntrospectionException TODO: Why?
              */
         }
 
         // If there's no read method, then look for just a write method
-        if ( mappedReadMethod == null )
-        {
-            mappedWriteMethod = getMethod( beanClass, "set" + base, 2 );
+        if (mappedReadMethod == null) {
+            mappedWriteMethod = getMethod(beanClass, "set" + base, 2);
         }
 
-        if ( ( mappedReadMethod == null ) && ( mappedWriteMethod == null ) )
-        {
-            throw new IntrospectionException( "Property '" + propertyName + "' not found on " + beanClass.getName() );
+        if ((mappedReadMethod == null) && (mappedWriteMethod == null)) {
+            throw new IntrospectionException("Property '" + propertyName + "' not found on " + beanClass.getName());
         }
-        mappedReadMethodRef = new MappedMethodReference( mappedReadMethod );
-        mappedWriteMethodRef = new MappedMethodReference( mappedWriteMethod );
+        mappedReadMethodRef = new MappedMethodReference(mappedReadMethod);
+        mappedWriteMethodRef = new MappedMethodReference(mappedWriteMethod);
 
         findMappedPropertyType();
     }
@@ -140,43 +125,38 @@ public class MappedPropertyDescriptor
     /**
      * This constructor takes the name of a mapped property, and method names for reading and writing the property.
      *
-     * @param propertyName The programmatic name of the property.
-     * @param beanClass The Class object for the target bean. For example sun.beans.OurButton.class.
+     * @param propertyName     The programmatic name of the property.
+     * @param beanClass        The Class object for the target bean. For example sun.beans.OurButton.class.
      * @param mappedGetterName The name of the method used for reading one of the property values. May be null if the
-     *            property is write-only.
+     *                         property is write-only.
      * @param mappedSetterName The name of the method used for writing one of the property values. May be null if the
-     *            property is read-only.
-     * @exception IntrospectionException if an exception occurs during introspection.
+     *                         property is read-only.
+     * @throws IntrospectionException if an exception occurs during introspection.
      */
-    public MappedPropertyDescriptor( String propertyName, Class<?> beanClass, String mappedGetterName,
-                                     String mappedSetterName )
-        throws IntrospectionException
-    {
+    public MappedPropertyDescriptor(String propertyName, Class<?> beanClass, String mappedGetterName,
+                                    String mappedSetterName)
+            throws IntrospectionException {
 
-        super( propertyName, null, null );
+        super(propertyName, null, null);
 
-        if ( propertyName == null || propertyName.length() == 0 )
-        {
-            throw new IntrospectionException( "bad property name: " + propertyName );
+        if (propertyName == null || propertyName.length() == 0) {
+            throw new IntrospectionException("bad property name: " + propertyName);
         }
-        setName( propertyName );
+        setName(propertyName);
 
         // search the mapped get and set methods
         Method mappedReadMethod = null;
         Method mappedWriteMethod = null;
-        mappedReadMethod = getMethod( beanClass, mappedGetterName, STRING_CLASS_PARAMETER );
+        mappedReadMethod = getMethod(beanClass, mappedGetterName, STRING_CLASS_PARAMETER);
 
-        if ( mappedReadMethod != null )
-        {
-            Class<?>[] params = { String.class, mappedReadMethod.getReturnType() };
-            mappedWriteMethod = getMethod( beanClass, mappedSetterName, params );
-        }
-        else
-        {
-            mappedWriteMethod = getMethod( beanClass, mappedSetterName, 2 );
+        if (mappedReadMethod != null) {
+            Class<?>[] params = {String.class, mappedReadMethod.getReturnType()};
+            mappedWriteMethod = getMethod(beanClass, mappedSetterName, params);
+        } else {
+            mappedWriteMethod = getMethod(beanClass, mappedSetterName, 2);
         }
-        mappedReadMethodRef = new MappedMethodReference( mappedReadMethod );
-        mappedWriteMethodRef = new MappedMethodReference( mappedWriteMethod );
+        mappedReadMethodRef = new MappedMethodReference(mappedReadMethod);
+        mappedWriteMethodRef = new MappedMethodReference(mappedWriteMethod);
 
         findMappedPropertyType();
     }
@@ -186,181 +166,62 @@ public class MappedPropertyDescriptor
      *
      * @param propertyName The programmatic name of the property.
      * @param mappedGetter The method used for reading one of the property values. May be be null if the property is
-     *            write-only.
+     *                     write-only.
      * @param mappedSetter The method used for writing one the property values. May be null if the property is
-     *            read-only.
-     * @exception IntrospectionException if an exception occurs during introspection.
+     *                     read-only.
+     * @throws IntrospectionException if an exception occurs during introspection.
      */
-    public MappedPropertyDescriptor( String propertyName, Method mappedGetter, Method mappedSetter )
-        throws IntrospectionException
-    {
+    public MappedPropertyDescriptor(String propertyName, Method mappedGetter, Method mappedSetter)
+            throws IntrospectionException {
 
-        super( propertyName, mappedGetter, mappedSetter );
+        super(propertyName, mappedGetter, mappedSetter);
 
-        if ( propertyName == null || propertyName.length() == 0 )
-        {
-            throw new IntrospectionException( "bad property name: " + propertyName );
+        if (propertyName == null || propertyName.length() == 0) {
+            throw new IntrospectionException("bad property name: " + propertyName);
         }
 
-        setName( propertyName );
-        mappedReadMethodRef = new MappedMethodReference( mappedGetter );
-        mappedWriteMethodRef = new MappedMethodReference( mappedSetter );
+        setName(propertyName);
+        mappedReadMethodRef = new MappedMethodReference(mappedGetter);
+        mappedWriteMethodRef = new MappedMethodReference(mappedSetter);
         findMappedPropertyType();
     }
 
     // -------------------------------------------------------- Public Methods
 
     /**
-     * Gets the Class object for the property values.
-     *
-     * @return The Java type info for the property values. Note that the "Class" object may describe a built-in Java
-     *         type such as "int". The result may be "null" if this is a mapped property that does not support non-keyed
-     *         access.
-     *         <p>
-     *         This is the type that will be returned by the mappedReadMethod.
-     */
-    public Class<?> getMappedPropertyType()
-    {
-        return mappedPropertyTypeRef.get();
-    }
-
-    /**
-     * Gets the method that should be used to read one of the property value.
-     *
-     * @return The method that should be used to read the property value. May return null if the property can't be read.
-     */
-    public Method getMappedReadMethod()
-    {
-        return mappedReadMethodRef.get();
-    }
-
-    /**
-     * Sets the method that should be used to read one of the property value.
-     *
-     * @param mappedGetter The mapped getter method.
-     * @throws IntrospectionException If an error occurs finding the mapped property
-     */
-    public void setMappedReadMethod( Method mappedGetter )
-        throws IntrospectionException
-    {
-        mappedReadMethodRef = new MappedMethodReference( mappedGetter );
-        findMappedPropertyType();
-    }
-
-    /**
-     * Gets the method that should be used to write one of the property value.
-     *
-     * @return The method that should be used to write one of the property value. May return null if the property can't
-     *         be written.
-     */
-    public Method getMappedWriteMethod()
-    {
-        return mappedWriteMethodRef.get();
-    }
-
-    /**
-     * Sets the method that should be used to write the property value.
-     *
-     * @param mappedSetter The mapped setter method.
-     * @throws IntrospectionException If an error occurs finding the mapped property
-     */
-    public void setMappedWriteMethod( Method mappedSetter )
-        throws IntrospectionException
-    {
-        mappedWriteMethodRef = new MappedMethodReference( mappedSetter );
-        findMappedPropertyType();
-    }
-
-    // ------------------------------------------------------- Private Methods
-
-    /**
-     * Introspect our bean class to identify the corresponding getter and setter methods.
-     */
-    private void findMappedPropertyType()
-        throws IntrospectionException
-    {
-        try
-        {
-            Method mappedReadMethod = getMappedReadMethod();
-            Method mappedWriteMethod = getMappedWriteMethod();
-            Class<?> mappedPropertyType = null;
-            if ( mappedReadMethod != null )
-            {
-                if ( mappedReadMethod.getParameterTypes().length != 1 )
-                {
-                    throw new IntrospectionException( "bad mapped read method arg count" );
-                }
-                mappedPropertyType = mappedReadMethod.getReturnType();
-                if ( mappedPropertyType == Void.TYPE )
-                {
-                    throw new IntrospectionException( "mapped read method " + mappedReadMethod.getName()
-                        + " returns void" );
-                }
-            }
-
-            if ( mappedWriteMethod != null )
-            {
-                Class<?>[] params = mappedWriteMethod.getParameterTypes();
-                if ( params.length != 2 )
-                {
-                    throw new IntrospectionException( "bad mapped write method arg count" );
-                }
-                if ( mappedPropertyType != null && mappedPropertyType != params[1] )
-                {
-                    throw new IntrospectionException( "type mismatch between mapped read and write methods" );
-                }
-                mappedPropertyType = params[1];
-            }
-            mappedPropertyTypeRef = new SoftReference<Class<?>>( mappedPropertyType );
-        }
-        catch ( IntrospectionException ex )
-        {
-            throw ex;
-        }
-    }
-
-    /**
      * Return a capitalized version of the specified property name.
      *
      * @param s The property name
      */
-    private static String capitalizePropertyName( String s )
-    {
-        if ( s.length() == 0 )
-        {
+    private static String capitalizePropertyName(String s) {
+        if (s.length() == 0) {
             return s;
         }
 
         char[] chars = s.toCharArray();
-        chars[0] = Character.toUpperCase( chars[0] );
-        return new String( chars );
+        chars[0] = Character.toUpperCase(chars[0]);
+        return new String(chars);
     }
 
     /**
      * Find a method on a class with a specified number of parameters.
      */
-    private static Method internalGetMethod( Class<?> initial, String methodName, int parameterCount )
-    {
+    private static Method internalGetMethod(Class<?> initial, String methodName, int parameterCount) {
         // For overridden methods we need to find the most derived version.
         // So we start with the given class and walk up the superclass chain.
-        for ( Class<?> clazz = initial; clazz != null; clazz = clazz.getSuperclass() )
-        {
+        for (Class<?> clazz = initial; clazz != null; clazz = clazz.getSuperclass()) {
             Method[] methods = clazz.getDeclaredMethods();
-            for ( int i = 0; i < methods.length; i++ )
-            {
+            for (int i = 0; i < methods.length; i++) {
                 Method method = methods[i];
-                if ( method == null )
-                {
+                if (method == null) {
                     continue;
                 }
                 // skip static methods.
                 int mods = method.getModifiers();
-                if ( !Modifier.isPublic( mods ) || Modifier.isStatic( mods ) )
-                {
+                if (!Modifier.isPublic(mods) || Modifier.isStatic(mods)) {
                     continue;
                 }
-                if ( method.getName().equals( methodName ) && method.getParameterTypes().length == parameterCount )
-                {
+                if (method.getName().equals(methodName) && method.getParameterTypes().length == parameterCount) {
                     return method;
                 }
             }
@@ -370,11 +231,9 @@ public class MappedPropertyDescriptor
         // the argument class is itself an interface, and when the argument
         // class is an abstract class.
         Class<?>[] interfaces = initial.getInterfaces();
-        for ( int i = 0; i < interfaces.length; i++ )
-        {
-            Method method = internalGetMethod( interfaces[i], methodName, parameterCount );
-            if ( method != null )
-            {
+        for (int i = 0; i < interfaces.length; i++) {
+            Method method = internalGetMethod(interfaces[i], methodName, parameterCount);
+            if (method != null) {
                 return method;
             }
         }
@@ -385,46 +244,132 @@ public class MappedPropertyDescriptor
     /**
      * Find a method on a class with a specified number of parameters.
      */
-    private static Method getMethod( Class<?> clazz, String methodName, int parameterCount )
-        throws IntrospectionException
-    {
-        if ( methodName == null )
-        {
+    private static Method getMethod(Class<?> clazz, String methodName, int parameterCount)
+            throws IntrospectionException {
+        if (methodName == null) {
             return null;
         }
 
-        Method method = internalGetMethod( clazz, methodName, parameterCount );
-        if ( method != null )
-        {
+        Method method = internalGetMethod(clazz, methodName, parameterCount);
+        if (method != null) {
             return method;
         }
 
         // No Method found
-        throw new IntrospectionException( "No method \"" + methodName + "\" with " + parameterCount + " parameter(s)" );
+        throw new IntrospectionException("No method \"" + methodName + "\" with " + parameterCount + " parameter(s)");
     }
 
     /**
      * Find a method on a class with a specified parameter list.
      */
-    private static Method getMethod( Class<?> clazz, String methodName, Class<?>[] parameterTypes )
-        throws IntrospectionException
-    {
-        if ( methodName == null )
-        {
+    private static Method getMethod(Class<?> clazz, String methodName, Class<?>[] parameterTypes)
+            throws IntrospectionException {
+        if (methodName == null) {
             return null;
         }
 
-        Method method = AccessibleObjectsRegistry.getMethodsRegistry().get( true, clazz, methodName, parameterTypes );
-        if ( method != null )
-        {
+        Method method = AccessibleObjectsRegistry.getMethodsRegistry().get(true, clazz, methodName, parameterTypes);
+        if (method != null) {
             return method;
         }
 
-        int parameterCount = ( parameterTypes == null ) ? 0 : parameterTypes.length;
+        int parameterCount = (parameterTypes == null) ? 0 : parameterTypes.length;
 
         // No Method found
-        throw new IntrospectionException( "No method \"" + methodName + "\" with " + parameterCount
-            + " parameter(s) of matching types." );
+        throw new IntrospectionException("No method \"" + methodName + "\" with " + parameterCount
+                + " parameter(s) of matching types.");
+    }
+
+    /**
+     * Gets the Class object for the property values.
+     *
+     * @return The Java type info for the property values. Note that the "Class" object may describe a built-in Java
+     * type such as "int". The result may be "null" if this is a mapped property that does not support non-keyed
+     * access.
+     */
+    public Class<?> getMappedPropertyType() {
+        return mappedPropertyTypeRef.get();
+    }
+
+    // ------------------------------------------------------- Private Methods
+
+    /**
+     * Gets the method that should be used to read one of the property value.
+     *
+     * @return The method that should be used to read the property value. May return null if the property can't be read.
+     */
+    public Method getMappedReadMethod() {
+        return mappedReadMethodRef.get();
+    }
+
+    /**
+     * Sets the method that should be used to read one of the property value.
+     *
+     * @param mappedGetter The mapped getter method.
+     * @throws IntrospectionException If an error occurs finding the mapped property
+     */
+    public void setMappedReadMethod(Method mappedGetter)
+            throws IntrospectionException {
+        mappedReadMethodRef = new MappedMethodReference(mappedGetter);
+        findMappedPropertyType();
+    }
+
+    /**
+     * Gets the method that should be used to write one of the property value.
+     *
+     * @return The method that should be used to write one of the property value. May return null if the property can't
+     * be written.
+     */
+    public Method getMappedWriteMethod() {
+        return mappedWriteMethodRef.get();
+    }
+
+    /**
+     * Sets the method that should be used to write the property value.
+     *
+     * @param mappedSetter The mapped setter method.
+     * @throws IntrospectionException If an error occurs finding the mapped property
+     */
+    public void setMappedWriteMethod(Method mappedSetter)
+            throws IntrospectionException {
+        mappedWriteMethodRef = new MappedMethodReference(mappedSetter);
+        findMappedPropertyType();
+    }
+
+    /**
+     * Introspect our bean class to identify the corresponding getter and setter methods.
+     */
+    private void findMappedPropertyType()
+            throws IntrospectionException {
+        try {
+            Method mappedReadMethod = getMappedReadMethod();
+            Method mappedWriteMethod = getMappedWriteMethod();
+            Class<?> mappedPropertyType = null;
+            if (mappedReadMethod != null) {
+                if (mappedReadMethod.getParameterTypes().length != 1) {
+                    throw new IntrospectionException("bad mapped read method arg count");
+                }
+                mappedPropertyType = mappedReadMethod.getReturnType();
+                if (mappedPropertyType == Void.TYPE) {
+                    throw new IntrospectionException("mapped read method " + mappedReadMethod.getName()
+                            + " returns void");
+                }
+            }
+
+            if (mappedWriteMethod != null) {
+                Class<?>[] params = mappedWriteMethod.getParameterTypes();
+                if (params.length != 2) {
+                    throw new IntrospectionException("bad mapped write method arg count");
+                }
+                if (mappedPropertyType != null && mappedPropertyType != params[1]) {
+                    throw new IntrospectionException("type mismatch between mapped read and write methods");
+                }
+                mappedPropertyType = params[1];
+            }
+            mappedPropertyTypeRef = new SoftReference<Class<?>>(mappedPropertyType);
+        } catch (IntrospectionException ex) {
+            throw ex;
+        }
     }
 
     /**
@@ -432,8 +377,7 @@ public class MappedPropertyDescriptor
      * collected, but tries to re-create the method if the method reference has been released. See
      * http://issues.apache.org/jira/browse/BEANUTILS-291
      */
-    private static class MappedMethodReference
-    {
+    private static class MappedMethodReference {
         private String className;
 
         private String methodName;
@@ -448,19 +392,16 @@ public class MappedPropertyDescriptor
 
         private String[] writeParamClassNames;
 
-        MappedMethodReference( Method m )
-        {
-            if ( m != null )
-            {
+        MappedMethodReference(Method m) {
+            if (m != null) {
                 className = m.getDeclaringClass().getName();
                 methodName = m.getName();
-                methodRef = new SoftReference<Method>( m );
-                classRef = new WeakReference<Class<?>>( m.getDeclaringClass() );
+                methodRef = new SoftReference<Method>(m);
+                classRef = new WeakReference<Class<?>>(m.getDeclaringClass());
                 Class<?>[] types = m.getParameterTypes();
-                if ( types.length == 2 )
-                {
-                    writeParamTypeRef0 = new WeakReference<Class<?>>( types[0] );
-                    writeParamTypeRef1 = new WeakReference<Class<?>>( types[1] );
+                if (types.length == 2) {
+                    writeParamTypeRef0 = new WeakReference<Class<?>>(types[0]);
+                    writeParamTypeRef1 = new WeakReference<Class<?>>(types[1]);
                     writeParamClassNames = new String[2];
                     writeParamClassNames[0] = types[0].getName();
                     writeParamClassNames[1] = types[1].getName();
@@ -468,68 +409,52 @@ public class MappedPropertyDescriptor
             }
         }
 
-        private Method get()
-        {
-            if ( methodRef == null )
-            {
+        private Method get() {
+            if (methodRef == null) {
                 return null;
             }
             Method m = methodRef.get();
-            if ( m == null )
-            {
+            if (m == null) {
                 Class<?> clazz = classRef.get();
-                if ( clazz == null )
-                {
+                if (clazz == null) {
                     clazz = reLoadClass();
-                    if ( clazz != null )
-                    {
-                        classRef = new WeakReference<Class<?>>( clazz );
+                    if (clazz != null) {
+                        classRef = new WeakReference<Class<?>>(clazz);
                     }
                 }
-                if ( clazz == null )
-                {
-                    throw new RuntimeException( "Method " + methodName + " for " + className
-                        + " could not be reconstructed - class reference has gone" );
+                if (clazz == null) {
+                    throw new RuntimeException("Method " + methodName + " for " + className
+                            + " could not be reconstructed - class reference has gone");
                 }
                 Class<?>[] paramTypes = null;
-                if ( writeParamClassNames != null )
-                {
+                if (writeParamClassNames != null) {
                     paramTypes = new Class[2];
                     paramTypes[0] = writeParamTypeRef0.get();
-                    if ( paramTypes[0] == null )
-                    {
-                        paramTypes[0] = reLoadClass( writeParamClassNames[0] );
-                        if ( paramTypes[0] != null )
-                        {
-                            writeParamTypeRef0 = new WeakReference<Class<?>>( paramTypes[0] );
+                    if (paramTypes[0] == null) {
+                        paramTypes[0] = reLoadClass(writeParamClassNames[0]);
+                        if (paramTypes[0] != null) {
+                            writeParamTypeRef0 = new WeakReference<Class<?>>(paramTypes[0]);
                         }
                     }
                     paramTypes[1] = writeParamTypeRef1.get();
-                    if ( paramTypes[1] == null )
-                    {
-                        paramTypes[1] = reLoadClass( writeParamClassNames[1] );
-                        if ( paramTypes[1] != null )
-                        {
-                            writeParamTypeRef1 = new WeakReference<Class<?>>( paramTypes[1] );
+                    if (paramTypes[1] == null) {
+                        paramTypes[1] = reLoadClass(writeParamClassNames[1]);
+                        if (paramTypes[1] != null) {
+                            writeParamTypeRef1 = new WeakReference<Class<?>>(paramTypes[1]);
                         }
                     }
-                }
-                else
-                {
+                } else {
                     paramTypes = STRING_CLASS_PARAMETER;
                 }
-                try
-                {
-                    m = clazz.getMethod( methodName, paramTypes );
+                try {
+                    m = clazz.getMethod(methodName, paramTypes);
                     // Un-comment following line for testing
                     // System.out.println("Recreated Method " + methodName + " for " + className);
+                } catch (NoSuchMethodException e) {
+                    throw new RuntimeException("Method " + methodName + " for " + className
+                            + " could not be reconstructed - method not found");
                 }
-                catch ( NoSuchMethodException e )
-                {
-                    throw new RuntimeException( "Method " + methodName + " for " + className
-                        + " could not be reconstructed - method not found" );
-                }
-                methodRef = new SoftReference<Method>( m );
+                methodRef = new SoftReference<Method>(m);
             }
             return m;
         }
@@ -537,40 +462,31 @@ public class MappedPropertyDescriptor
         /**
          * Try to re-load the class
          */
-        private Class<?> reLoadClass()
-        {
-            return reLoadClass( className );
+        private Class<?> reLoadClass() {
+            return reLoadClass(className);
         }
 
         /**
          * Try to re-load the class
          */
-        private Class<?> reLoadClass( String name )
-        {
+        private Class<?> reLoadClass(String name) {
 
             ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
 
             // Try the context class loader
-            if ( classLoader != null )
-            {
-                try
-                {
-                    return classLoader.loadClass( name );
-                }
-                catch ( ClassNotFoundException e )
-                {
+            if (classLoader != null) {
+                try {
+                    return classLoader.loadClass(name);
+                } catch (ClassNotFoundException e) {
                     // ignore
                 }
             }
 
             // Try this class's class loader
             classLoader = MappedPropertyDescriptor.class.getClassLoader();
-            try
-            {
-                return classLoader.loadClass( name );
-            }
-            catch ( ClassNotFoundException e )
-            {
+            try {
+                return classLoader.loadClass(name);
+            } catch (ClassNotFoundException e) {
                 return null;
             }
         }

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MappedPropertyGetterAccessor.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MappedPropertyGetterAccessor.java?rev=1592200&r1=1592199&r2=1592200&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MappedPropertyGetterAccessor.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MappedPropertyGetterAccessor.java Sat May  3 13:14:53 2014
@@ -1,5 +1,3 @@
-package org.apache.commons.beanutils2;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -19,9 +17,10 @@ package org.apache.commons.beanutils2;
  * under the License.
  */
 
-public interface MappedPropertyGetterAccessor
-{
+package org.apache.commons.beanutils2;
+
+public interface MappedPropertyGetterAccessor {
 
-    BeanAccessor<?> of( String key );
+    BeanAccessor<?> of(String key);
 
 }

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MappedPropertySetterAccessor.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MappedPropertySetterAccessor.java?rev=1592200&r1=1592199&r2=1592200&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MappedPropertySetterAccessor.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MappedPropertySetterAccessor.java Sat May  3 13:14:53 2014
@@ -1,5 +1,3 @@
-package org.apache.commons.beanutils2;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -19,9 +17,10 @@ package org.apache.commons.beanutils2;
  * under the License.
  */
 
-public interface MappedPropertySetterAccessor<B>
-{
+package org.apache.commons.beanutils2;
+
+public interface MappedPropertySetterAccessor<B> {
 
-    BeanPropertySetter<B> of( String key );
+    BeanPropertySetter<B> of(String key);
 
 }

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MethodInvocationException.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MethodInvocationException.java?rev=1592200&r1=1592199&r2=1592200&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MethodInvocationException.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MethodInvocationException.java Sat May  3 13:14:53 2014
@@ -1,5 +1,3 @@
-package org.apache.commons.beanutils2;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -19,12 +17,13 @@ package org.apache.commons.beanutils2;
  * under the License.
  */
 
+package org.apache.commons.beanutils2;
+
 /**
  * An exception that indicates that calling a method by reflection threw an exception.
  */
 public class MethodInvocationException
-    extends BeanReflectionException
-{
+        extends BeanReflectionException {
 
     private static final long serialVersionUID = 201206192249L;
 
@@ -34,17 +33,15 @@ public class MethodInvocationException
      * Constructs a new instance of MethodInvocationException.
      *
      * @param methodName the name of the method that threw the exception
-     * @param beanType the type the method is defined on
-     * @param cause the exception's cause
+     * @param beanType   the type the method is defined on
+     * @param cause      the exception's cause
      */
-    public MethodInvocationException( String methodName, Class<?> beanType, Throwable cause )
-    {
-        super( cause, beanType, "Method %s of type %s threw an exception", methodName, beanType );
+    public MethodInvocationException(String methodName, Class<?> beanType, Throwable cause) {
+        super(cause, beanType, "Method %s of type %s threw an exception", methodName, beanType);
         this.methodName = methodName;
     }
 
-    public String getMethodName()
-    {
+    public String getMethodName() {
         return this.methodName;
     }
 

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MethodNotAccessibleException.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MethodNotAccessibleException.java?rev=1592200&r1=1592199&r2=1592200&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MethodNotAccessibleException.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MethodNotAccessibleException.java Sat May  3 13:14:53 2014
@@ -1,5 +1,3 @@
-package org.apache.commons.beanutils2;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -19,15 +17,15 @@ package org.apache.commons.beanutils2;
  * under the License.
  */
 
+package org.apache.commons.beanutils2;
+
 public class MethodNotAccessibleException
-    extends BeanReflectionException
-{
+        extends BeanReflectionException {
 
     private static final long serialVersionUID = 201207112209L;
 
-    public MethodNotAccessibleException( String methodName, Class<?> target, Throwable cause )
-    {
-        super( cause, target, "Method '%s' of type '%s' is not accessbile!", methodName, target );
+    public MethodNotAccessibleException(String methodName, Class<?> target, Throwable cause) {
+        super(cause, target, "Method '%s' of type '%s' is not accessbile!", methodName, target);
     }
 
 }

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MethodUtils.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MethodUtils.java?rev=1592200&r1=1592199&r2=1592200&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MethodUtils.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MethodUtils.java Sat May  3 13:14:53 2014
@@ -1,5 +1,3 @@
-package org.apache.commons.beanutils2;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -19,38 +17,34 @@ package org.apache.commons.beanutils2;
  * under the License.
  */
 
+package org.apache.commons.beanutils2;
+
 import java.lang.reflect.Method;
 
 /**
  * Utility for handling {@link Method Methods}
  */
-final class MethodUtils
-{
+final class MethodUtils {
 
-    private MethodUtils()
-    {
+    private MethodUtils() {
         // this class cannot be instantiated
     }
 
-    public static boolean isMappedSetter( Method method )
-    {
-        boolean startsWithSet = method.getName().startsWith( "set" );
+    public static boolean isMappedSetter(Method method) {
+        boolean startsWithSet = method.getName().startsWith("set");
         boolean twoParameters = method.getParameterTypes().length == 2;
-        if ( startsWithSet && twoParameters )
-        {
-            return method.getParameterTypes()[0].equals( String.class );
+        if (startsWithSet && twoParameters) {
+            return method.getParameterTypes()[0].equals(String.class);
         }
         return false;
     }
 
-    public static boolean isMappedGetter( Method method )
-    {
-        boolean startsWithGet = method.getName().startsWith( "get" );
+    public static boolean isMappedGetter(Method method) {
+        boolean startsWithGet = method.getName().startsWith("get");
         boolean onlyOneParameter = method.getParameterTypes().length == 1;
-        boolean returnsSomething = !method.getReturnType().equals( Void.TYPE );
-        if ( startsWithGet && onlyOneParameter && returnsSomething )
-        {
-            return method.getParameterTypes()[0].equals( String.class );
+        boolean returnsSomething = !method.getReturnType().equals(Void.TYPE);
+        if (startsWithGet && onlyOneParameter && returnsSomething) {
+            return method.getParameterTypes()[0].equals(String.class);
         }
         return false;
     }

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/NoSuchBeanMethodException.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/NoSuchBeanMethodException.java?rev=1592200&r1=1592199&r2=1592200&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/NoSuchBeanMethodException.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/NoSuchBeanMethodException.java Sat May  3 13:14:53 2014
@@ -1,5 +1,3 @@
-package org.apache.commons.beanutils2;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -19,15 +17,15 @@ package org.apache.commons.beanutils2;
  * under the License.
  */
 
+package org.apache.commons.beanutils2;
+
 public class NoSuchBeanMethodException
-    extends BeanReflectionException
-{
+        extends BeanReflectionException {
 
     private static final long serialVersionUID = 201207112201L;
 
-    public NoSuchBeanMethodException( String methodName, Class<?> target, Throwable cause )
-    {
-        super( cause, target, "No such accessible method: %s() on object: %s", methodName, target );
+    public NoSuchBeanMethodException(String methodName, Class<?> target, Throwable cause) {
+        super(cause, target, "No such accessible method: %s() on object: %s", methodName, target);
     }
 
 }

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/NoSuchConstructorException.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/NoSuchConstructorException.java?rev=1592200&r1=1592199&r2=1592200&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/NoSuchConstructorException.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/NoSuchConstructorException.java Sat May  3 13:14:53 2014
@@ -1,5 +1,3 @@
-package org.apache.commons.beanutils2;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -19,15 +17,15 @@ package org.apache.commons.beanutils2;
  * under the License.
  */
 
+package org.apache.commons.beanutils2;
+
 public class NoSuchConstructorException
-    extends BeanReflectionException
-{
+        extends BeanReflectionException {
 
     private static final long serialVersionUID = 201207122142L;
 
-    public NoSuchConstructorException( Class<?> beanType, Throwable cause )
-    {
-        super( cause, beanType, "No such accessible constructor on class '%s'.", beanType );
+    public NoSuchConstructorException(Class<?> beanType, Throwable cause) {
+        super(cause, beanType, "No such accessible constructor on class '%s'.", beanType);
     }
 
 }

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/NoSuchPropertyException.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/NoSuchPropertyException.java?rev=1592200&r1=1592199&r2=1592200&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/NoSuchPropertyException.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/NoSuchPropertyException.java Sat May  3 13:14:53 2014
@@ -1,5 +1,3 @@
-package org.apache.commons.beanutils2;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -19,12 +17,13 @@ package org.apache.commons.beanutils2;
  * under the License.
  */
 
+package org.apache.commons.beanutils2;
+
 /**
  * An exception that indicates that a property could not be found.
  */
 public class NoSuchPropertyException
-    extends BeanReflectionException
-{
+        extends BeanReflectionException {
 
     private static final long serialVersionUID = 201206192222L;
 
@@ -34,17 +33,15 @@ public class NoSuchPropertyException
      * Constructs a new instance of NoSuchPropertyException.
      *
      * @param propertyName the name of the property that couldn't be found
-     * @param beanType the class the property was searched for
-     * @param cause the cause of this exception
+     * @param beanType     the class the property was searched for
+     * @param cause        the cause of this exception
      */
-    public NoSuchPropertyException( String propertyName, Class<?> beanType, Throwable cause )
-    {
-        super( cause, beanType, "No property %s available in type %s", propertyName, beanType.getName() );
+    public NoSuchPropertyException(String propertyName, Class<?> beanType, Throwable cause) {
+        super(cause, beanType, "No property %s available in type %s", propertyName, beanType.getName());
         this.propertyName = propertyName;
     }
 
-    public String getPropertyName()
-    {
+    public String getPropertyName() {
         return propertyName;
     }
 

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/NullBeanAccessor.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/NullBeanAccessor.java?rev=1592200&r1=1592199&r2=1592200&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/NullBeanAccessor.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/NullBeanAccessor.java Sat May  3 13:14:53 2014
@@ -1,5 +1,3 @@
-package org.apache.commons.beanutils2;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -19,150 +17,134 @@ package org.apache.commons.beanutils2;
  * under the License.
  */
 
+package org.apache.commons.beanutils2;
+
 import static java.lang.String.format;
 
 import java.beans.IntrospectionException;
 import java.util.Map;
 
 final class NullBeanAccessor<B>
-    implements BeanAccessor<B>
-{
+        implements BeanAccessor<B> {
 
     private final String errorMessage;
 
-    public NullBeanAccessor( String beanTypeName, String methodName )
-    {
-        errorMessage = format( "%s.%s returned null!", beanTypeName, methodName );
+    public NullBeanAccessor(String beanTypeName, String methodName) {
+        errorMessage = format("%s.%s returned null!", beanTypeName, methodName);
     }
 
     /**
      * {@inheritDoc}
      */
-    public BeanAccessor<?> get( String propertyName )
-    {
-        throw new NullPointerException( errorMessage );
+    public BeanAccessor<?> get(String propertyName) {
+        throw new NullPointerException(errorMessage);
     }
 
     /**
      * {@inheritDoc}
      */
-    public IndexedPropertyGetterAccessor<?> getIndexed( String propertyName )
-    {
-        throw new NullPointerException( errorMessage );
+    public IndexedPropertyGetterAccessor<?> getIndexed(String propertyName) {
+        throw new NullPointerException(errorMessage);
     }
 
     /**
      * {@inheritDoc}
      */
-    public MappedPropertyGetterAccessor getMapped( String propertyName )
-    {
-        throw new NullPointerException( errorMessage );
+    public MappedPropertyGetterAccessor getMapped(String propertyName) {
+        throw new NullPointerException(errorMessage);
     }
 
     /**
      * {@inheritDoc}
      */
-    public B get()
-    {
+    public B get() {
         return null;
     }
 
     /**
      * {@inheritDoc}
      */
-    public <V> V cast()
-    {
+    public <V> V cast() {
         return null;
     }
 
     /**
      * {@inheritDoc}
      */
-    public BeanPropertySetter<B> set( String propertyName )
-    {
-        throw new NullPointerException( errorMessage );
+    public BeanPropertySetter<B> set(String propertyName) {
+        throw new NullPointerException(errorMessage);
     }
 
     /**
      * {@inheritDoc}
      */
-    public IndexedPropertySetterAccessor<B> setIndexed( String propertyName )
-    {
-        throw new NullPointerException( errorMessage );
+    public IndexedPropertySetterAccessor<B> setIndexed(String propertyName) {
+        throw new NullPointerException(errorMessage);
     }
 
     /**
      * {@inheritDoc}
      */
-    public MappedPropertySetterAccessor<B> setMapped( String propertyName )
-    {
-        throw new NullPointerException( errorMessage );
+    public MappedPropertySetterAccessor<B> setMapped(String propertyName) {
+        throw new NullPointerException(errorMessage);
     }
 
     /**
      * {@inheritDoc}
      */
-    public boolean isReadable( String propertyName )
-        throws IntrospectionException
-    {
-        throw new NullPointerException( errorMessage );
+    public boolean isReadable(String propertyName)
+            throws IntrospectionException {
+        throw new NullPointerException(errorMessage);
     }
 
     /**
      * {@inheritDoc}
      */
-    public boolean isWritable( String propertyName )
-        throws IntrospectionException
-    {
-        throw new NullPointerException( errorMessage );
+    public boolean isWritable(String propertyName)
+            throws IntrospectionException {
+        throw new NullPointerException(errorMessage);
     }
 
     /**
      * {@inheritDoc}
      */
-    public B cloneBean()
-    {
+    public B cloneBean() {
         return null;
     }
 
     /**
      * {@inheritDoc}
      */
-    public <T extends B> void copyPropertiesTo( T target )
-    {
-        throw new NullPointerException( errorMessage );
+    public <T extends B> void copyPropertiesTo(T target) {
+        throw new NullPointerException(errorMessage);
     }
 
     /**
      * {@inheritDoc}
      */
-    public Map<String, Object> describe()
-    {
-        throw new NullPointerException( errorMessage );
+    public Map<String, Object> describe() {
+        throw new NullPointerException(errorMessage);
     }
 
     /**
      * {@inheritDoc}
      */
-    public void populate( Map<String, Object> properties )
-    {
-        throw new NullPointerException( errorMessage );
+    public void populate(Map<String, Object> properties) {
+        throw new NullPointerException(errorMessage);
     }
 
     /**
      * {@inheritDoc}
      */
-    public ArgumentsAccessor invoke( String methodName )
-    {
-        throw new NullPointerException( errorMessage );
+    public ArgumentsAccessor invoke(String methodName) {
+        throw new NullPointerException(errorMessage);
     }
 
     /**
      * {@inheritDoc}
      */
-    public ArgumentsAccessor invokeExact( String methodName )
-    {
-        throw new NullPointerException( errorMessage );
+    public ArgumentsAccessor invokeExact(String methodName) {
+        throw new NullPointerException(errorMessage);
     }
 
 }

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=1592200&r1=1592199&r2=1592200&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 Sat May  3 13:14:53 2014
@@ -1,5 +1,3 @@
-package org.apache.commons.beanutils2;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -19,6 +17,8 @@ package org.apache.commons.beanutils2;
  * under the License.
  */
 
+package org.apache.commons.beanutils2;
+
 import static java.beans.Introspector.getBeanInfo;
 
 import java.beans.BeanInfo;
@@ -39,133 +39,111 @@ import java.util.concurrent.locks.Reentr
 /**
  *
  */
-final class PropertyDescriptorsRegistry
-{
+final class PropertyDescriptorsRegistry {
 
     private static final PropertyDescriptorsRegistry INSTANCE = new PropertyDescriptorsRegistry();
-
-    public static PropertyDescriptorsRegistry getInstance()
-    {
-        return INSTANCE;
-    }
-
     private final AccessibleObjectsRegistry<Method> methodsRegistry = AccessibleObjectsRegistry.getMethodsRegistry();
-
     private final Map<Class<?>, Map<String, PropertyDescriptor>> cache =
-        new WeakHashMap<Class<?>, Map<String, PropertyDescriptor>>();
+            new WeakHashMap<Class<?>, Map<String, PropertyDescriptor>>();
 
     /**
      * This class can not be instantiated.
      */
-    private PropertyDescriptorsRegistry()
-    {
+    private PropertyDescriptorsRegistry() {
         // do nothing
     }
 
-    public Map<String, PropertyDescriptor> getPropertiesIndex( Class<?> beanType )
-        throws IntrospectionException
-    {
+    public static PropertyDescriptorsRegistry getInstance() {
+        return INSTANCE;
+    }
+
+    public Map<String, PropertyDescriptor> getPropertiesIndex(Class<?> beanType)
+            throws IntrospectionException {
         final Lock lock = new ReentrantLock();
         lock.lock();
-        try
-        {
-            Map<String, PropertyDescriptor> propertiesIndex = cache.get( beanType );
-            if ( propertiesIndex != null )
-            {
+        try {
+            Map<String, PropertyDescriptor> propertiesIndex = cache.get(beanType);
+            if (propertiesIndex != null) {
                 return propertiesIndex;
             }
 
             propertiesIndex = new HashMap<String, PropertyDescriptor>();
-            BeanInfo beanInfo = getBeanInfo( beanType );
+            BeanInfo beanInfo = getBeanInfo(beanType);
 
             List<PropertyDescriptor> propertyDescriptors =
-                new ArrayList<PropertyDescriptor>( Arrays.asList( beanInfo.getPropertyDescriptors() ) );
-            propertyDescriptors.addAll( getMappedPropertyDescriptors( beanType ) );
-            for ( PropertyDescriptor propertyDescriptor : propertyDescriptors )
-            {
-                makeMethodsAccessible( beanType, propertyDescriptor );
-                propertiesIndex.put( propertyDescriptor.getName(), propertyDescriptor );
+                    new ArrayList<PropertyDescriptor>(Arrays.asList(beanInfo.getPropertyDescriptors()));
+            propertyDescriptors.addAll(getMappedPropertyDescriptors(beanType));
+            for (PropertyDescriptor propertyDescriptor : propertyDescriptors) {
+                makeMethodsAccessible(beanType, propertyDescriptor);
+                propertiesIndex.put(propertyDescriptor.getName(), propertyDescriptor);
             }
 
-            cache.put( beanType, propertiesIndex );
+            cache.put(beanType, propertiesIndex);
 
             return propertiesIndex;
-        }
-        finally
-        {
+        } finally {
             lock.unlock();
         }
     }
 
-    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() )
-        {
-            if ( MethodUtils.isMappedGetter( method ) || MethodUtils.isMappedSetter( method ) )
-            {
-                String propertyName = method.getName().substring( 3 );
-                propertyName = Character.toLowerCase( propertyName.charAt( 0 ) ) + propertyName.substring( 1 );
-                if ( !mappedPropertyDescirptors.containsKey( propertyName ) )
-                {
-                    mappedPropertyDescirptors.put( propertyName, new MappedPropertyDescriptor( propertyName, beanType ) );
+        for (Method method : beanType.getMethods()) {
+            if (MethodUtils.isMappedGetter(method) || MethodUtils.isMappedSetter(method)) {
+                String propertyName = method.getName().substring(3);
+                propertyName = Character.toLowerCase(propertyName.charAt(0)) + propertyName.substring(1);
+                if (!mappedPropertyDescirptors.containsKey(propertyName)) {
+                    mappedPropertyDescirptors.put(propertyName, new MappedPropertyDescriptor(propertyName, beanType));
                 }
             }
         }
         return mappedPropertyDescirptors.values();
     }
 
-    private void makeMethodsAccessible( Class<?> beanType, PropertyDescriptor propertyDescriptor )
-        throws IntrospectionException
-    {
+    private void makeMethodsAccessible(Class<?> beanType, PropertyDescriptor propertyDescriptor)
+            throws IntrospectionException {
         // we need to make sure that methods are accessible for anonymous types
         // see https://issues.apache.org/jira/browse/BEANUTILS-157
-        if ( propertyDescriptor.getReadMethod() != null )
-        {
+        if (propertyDescriptor.getReadMethod() != null) {
             Method readMethod = propertyDescriptor.getReadMethod();
-            readMethod = methodsRegistry.get( true, beanType, readMethod.getName() );
-            propertyDescriptor.setReadMethod( readMethod );
+            readMethod = methodsRegistry.get(true, beanType, readMethod.getName());
+            propertyDescriptor.setReadMethod(readMethod);
         }
-        if ( propertyDescriptor.getWriteMethod() != null )
-        {
+        if (propertyDescriptor.getWriteMethod() != null) {
             Method writeMethod = propertyDescriptor.getWriteMethod();
-            writeMethod = methodsRegistry.get( true, beanType, writeMethod.getName(), writeMethod.getParameterTypes() );
-            propertyDescriptor.setWriteMethod( writeMethod );
+            writeMethod = methodsRegistry.get(true, beanType, writeMethod.getName(), writeMethod.getParameterTypes());
+            propertyDescriptor.setWriteMethod(writeMethod);
         }
 
         // indexed property
 
-        if ( propertyDescriptor instanceof IndexedPropertyDescriptor )
-        {
+        if (propertyDescriptor instanceof IndexedPropertyDescriptor) {
             IndexedPropertyDescriptor indexedPropertyDescriptor = (IndexedPropertyDescriptor) propertyDescriptor;
 
-            if ( indexedPropertyDescriptor.getIndexedReadMethod() != null )
-            {
+            if (indexedPropertyDescriptor.getIndexedReadMethod() != null) {
                 Method indexedReadMethod = indexedPropertyDescriptor.getIndexedReadMethod();
-                indexedReadMethod = methodsRegistry.get( true,
-                                                         beanType,
-                                                         indexedReadMethod.getName(),
-                                                         indexedReadMethod.getParameterTypes() );
-                indexedPropertyDescriptor.setIndexedReadMethod( indexedReadMethod );
+                indexedReadMethod = methodsRegistry.get(true,
+                        beanType,
+                        indexedReadMethod.getName(),
+                        indexedReadMethod.getParameterTypes());
+                indexedPropertyDescriptor.setIndexedReadMethod(indexedReadMethod);
             }
-            if ( indexedPropertyDescriptor.getIndexedWriteMethod() != null )
-            {
+            if (indexedPropertyDescriptor.getIndexedWriteMethod() != null) {
                 Method indexedWriteMethod = indexedPropertyDescriptor.getIndexedWriteMethod();
-                indexedWriteMethod = methodsRegistry.get( true,
-                                                          beanType,
-                                                          indexedWriteMethod.getName(),
-                                                          indexedWriteMethod.getParameterTypes() );
-                indexedPropertyDescriptor.setIndexedWriteMethod( indexedWriteMethod );
+                indexedWriteMethod = methodsRegistry.get(true,
+                        beanType,
+                        indexedWriteMethod.getName(),
+                        indexedWriteMethod.getParameterTypes());
+                indexedPropertyDescriptor.setIndexedWriteMethod(indexedWriteMethod);
             }
         }
     }
 
-    public PropertyDescriptor getPropertyDescriptor( Class<?> beanType, String propertyName )
-        throws IntrospectionException
-    {
-        Map<String, PropertyDescriptor> propertiesIndex = getPropertiesIndex( beanType );
-        return propertiesIndex.get( propertyName );
+    public PropertyDescriptor getPropertyDescriptor(Class<?> beanType, String propertyName)
+            throws IntrospectionException {
+        Map<String, PropertyDescriptor> propertiesIndex = getPropertiesIndex(beanType);
+        return propertiesIndex.get(propertyName);
     }
 
 }

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyGetterInvocationException.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyGetterInvocationException.java?rev=1592200&r1=1592199&r2=1592200&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyGetterInvocationException.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyGetterInvocationException.java Sat May  3 13:14:53 2014
@@ -1,5 +1,3 @@
-package org.apache.commons.beanutils2;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -19,26 +17,25 @@ package org.apache.commons.beanutils2;
  * under the License.
  */
 
+package org.apache.commons.beanutils2;
+
 /**
  * An exception indicating that calling the getter of a property caused an exception.
  */
 public class PropertyGetterInvocationException
-    extends MethodInvocationException
-{
+        extends MethodInvocationException {
 
     private static final long serialVersionUID = 201206192258L;
 
     private final String propertyName;
 
-    public PropertyGetterInvocationException( String propertyName, String getterMethodName, Class<?> target,
-                                              Throwable cause )
-    {
-        super( getterMethodName, target, cause );
+    public PropertyGetterInvocationException(String propertyName, String getterMethodName, Class<?> target,
+                                             Throwable cause) {
+        super(getterMethodName, target, cause);
         this.propertyName = propertyName;
     }
 
-    public String getPropertyName()
-    {
+    public String getPropertyName() {
         return propertyName;
     }
 

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyGetterNotAccessibleException.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyGetterNotAccessibleException.java?rev=1592200&r1=1592199&r2=1592200&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyGetterNotAccessibleException.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyGetterNotAccessibleException.java Sat May  3 13:14:53 2014
@@ -1,5 +1,3 @@
-package org.apache.commons.beanutils2;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -19,23 +17,22 @@ package org.apache.commons.beanutils2;
  * under the License.
  */
 
+package org.apache.commons.beanutils2;
+
 public class PropertyGetterNotAccessibleException
-    extends MethodNotAccessibleException
-{
+        extends MethodNotAccessibleException {
 
     private static final long serialVersionUID = 201207151513L;
 
     private final String propertyName;
 
-    public PropertyGetterNotAccessibleException( String propertyName, String getterMethodName, Class<?> target,
-                                                 Throwable cause )
-    {
-        super( getterMethodName, target, cause );
+    public PropertyGetterNotAccessibleException(String propertyName, String getterMethodName, Class<?> target,
+                                                Throwable cause) {
+        super(getterMethodName, target, cause);
         this.propertyName = propertyName;
     }
 
-    public String getPropertyName()
-    {
+    public String getPropertyName() {
         return propertyName;
     }
 

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyInterpreter.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyInterpreter.java?rev=1592200&r1=1592199&r2=1592200&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyInterpreter.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyInterpreter.java Sat May  3 13:14:53 2014
@@ -1,5 +1,3 @@
-package org.apache.commons.beanutils2;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -19,162 +17,137 @@ package org.apache.commons.beanutils2;
  * under the License.
  */
 
+package org.apache.commons.beanutils2;
+
 import java.util.LinkedList;
 import java.util.Queue;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
-final class PropertyInterpreter
-{
+final class PropertyInterpreter {
     /**
      * Interprets a given simple/indexed/mapped/nested property name or any combination of it.
      *
-     * @param beanAccessor A {@link BeanAccessor} to resolve the given {@param propertyExpression}
+     * @param beanAccessor       A {@link BeanAccessor} to resolve the given {@param propertyExpression}
      * @param propertyExpression A simple/indexed/mapped/nested property name or any combination of it
      * @return A {@link BeanAccessor} representing the resolved {@param propertyExpression}
      */
-    public static BeanAccessor<?> interpret( BeanAccessor<?> beanAccessor, String propertyExpression )
-    {
-        Queue<Expression> expressionQueue = buildExpressionQueue( propertyExpression );
+    public static BeanAccessor<?> interpret(BeanAccessor<?> beanAccessor, String propertyExpression) {
+        Queue<Expression> expressionQueue = buildExpressionQueue(propertyExpression);
 
-        return processExpressions( beanAccessor, expressionQueue );
+        return processExpressions(beanAccessor, expressionQueue);
     }
 
-    private static Queue<Expression> buildExpressionQueue( String propertyExpression )
-    {
+    private static Queue<Expression> buildExpressionQueue(String propertyExpression) {
         Queue<Expression> expressionQueue = new LinkedList<Expression>();
 
-        String[] properties = obtainProperties( propertyExpression );
+        String[] properties = obtainProperties(propertyExpression);
 
-        for ( String property : properties )
-        {
-            if ( Property.isExpression( property ) )
-            {
-                expressionQueue.offer( new Property( property ) );
-            }
-            else if ( IndexedProperty.isExpression( property ) )
-            {
-                expressionQueue.offer( new IndexedProperty( property ) );
-            }
-            else if ( MappedProperty.isExpression( property ) )
-            {
-                expressionQueue.offer( new MappedProperty( property ) );
-            }
-            else
-            {
+        for (String property : properties) {
+            if (Property.isExpression(property)) {
+                expressionQueue.offer(new Property(property));
+            } else if (IndexedProperty.isExpression(property)) {
+                expressionQueue.offer(new IndexedProperty(property));
+            } else if (MappedProperty.isExpression(property)) {
+                expressionQueue.offer(new MappedProperty(property));
+            } else {
                 throw new IllegalArgumentException(
-                    String.format( "The specified propertyExpression '%s' is not valid.", propertyExpression ) );
+                        String.format("The specified propertyExpression '%s' is not valid.", propertyExpression));
             }
         }
 
         return expressionQueue;
     }
 
-    private static BeanAccessor<?> processExpressions( BeanAccessor<?> beanAccessor, Queue<Expression> expressionQueue )
-    {
+    private static BeanAccessor<?> processExpressions(BeanAccessor<?> beanAccessor, Queue<Expression> expressionQueue) {
         Expression expression;
-        while ( ( expression = expressionQueue.poll() ) != null )
-        {
-            beanAccessor = expression.interpret( beanAccessor );
+        while ((expression = expressionQueue.poll()) != null) {
+            beanAccessor = expression.interpret(beanAccessor);
         }
 
         return beanAccessor;
     }
 
-    private static String[] obtainProperties( String propertyExpression )
-    {
-        String[] properties = propertyExpression.split( "\\." );
+    private static String[] obtainProperties(String propertyExpression) {
+        String[] properties = propertyExpression.split("\\.");
 
         return properties;
     }
 
+    private interface Expression {
+        BeanAccessor<?> interpret(BeanAccessor<?> beanAccessor);
+    }
+
     private static class Property
-        implements Expression
-    {
+            implements Expression {
         private static final String REGEX = "[a-z]+[A-Za-z]*";
 
         private final String propertyName;
 
-        private Property( String propertyName )
-        {
+        private Property(String propertyName) {
             this.propertyName = propertyName;
         }
 
-        public BeanAccessor<?> interpret( BeanAccessor<?> beanAccessor )
-        {
-            return beanAccessor.get( propertyName );
+        public static boolean isExpression(String expression) {
+            return expression.matches(REGEX);
         }
 
-        public static boolean isExpression( String expression )
-        {
-            return expression.matches( REGEX );
+        public BeanAccessor<?> interpret(BeanAccessor<?> beanAccessor) {
+            return beanAccessor.get(propertyName);
         }
     }
 
     private static class IndexedProperty
-        implements Expression
-    {
+            implements Expression {
         private static final String REGEX = "([a-z]+[A-Za-z]*)\\[([0-9]+)\\]";
 
-        private static final Pattern PATTERN = Pattern.compile( REGEX );
+        private static final Pattern PATTERN = Pattern.compile(REGEX);
 
         private final String propertyName;
 
-        private IndexedProperty( String propertyName )
-        {
+        private IndexedProperty(String propertyName) {
             this.propertyName = propertyName;
         }
 
-        public BeanAccessor<?> interpret( BeanAccessor<?> beanAccessor )
-        {
-            Matcher matcher = PATTERN.matcher( propertyName );
-            matcher.matches();
+        public static boolean isExpression(String expression) {
+            return expression.matches(REGEX);
+        }
 
-            String property = matcher.group( 1 );
-            int index = Integer.valueOf( matcher.group( 2 ) );
+        public BeanAccessor<?> interpret(BeanAccessor<?> beanAccessor) {
+            Matcher matcher = PATTERN.matcher(propertyName);
+            matcher.matches();
 
-            return beanAccessor.getIndexed( property ).at( index );
-        }
+            String property = matcher.group(1);
+            int index = Integer.valueOf(matcher.group(2));
 
-        public static boolean isExpression( String expression )
-        {
-            return expression.matches( REGEX );
+            return beanAccessor.getIndexed(property).at(index);
         }
     }
 
     private static class MappedProperty
-        implements Expression
-    {
+            implements Expression {
         private static final String REGEX = "([a-z]+[A-Za-z]*)\\(([A-Za-z0-9\\s]+)\\)";
 
-        private static final Pattern PATTERN = Pattern.compile( REGEX );
+        private static final Pattern PATTERN = Pattern.compile(REGEX);
 
         private final String propertyName;
 
-        private MappedProperty( String propertyName )
-        {
+        private MappedProperty(String propertyName) {
             this.propertyName = propertyName;
         }
 
-        public BeanAccessor<?> interpret( BeanAccessor<?> beanAccessor )
-        {
-            Matcher matcher = PATTERN.matcher( propertyName );
-            matcher.matches();
+        public static boolean isExpression(String expression) {
+            return expression.matches(REGEX);
+        }
 
-            String property = matcher.group( 1 );
-            String key = matcher.group( 2 );
+        public BeanAccessor<?> interpret(BeanAccessor<?> beanAccessor) {
+            Matcher matcher = PATTERN.matcher(propertyName);
+            matcher.matches();
 
-            return beanAccessor.getMapped( property ).of( key );
-        }
+            String property = matcher.group(1);
+            String key = matcher.group(2);
 
-        public static boolean isExpression( String expression )
-        {
-            return expression.matches( REGEX );
+            return beanAccessor.getMapped(property).of(key);
         }
     }
-
-    private interface Expression
-    {
-        BeanAccessor<?> interpret( BeanAccessor<?> beanAccessor );
-    }
 }

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyNotReadableException.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyNotReadableException.java?rev=1592200&r1=1592199&r2=1592200&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyNotReadableException.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyNotReadableException.java Sat May  3 13:14:53 2014
@@ -1,5 +1,3 @@
-package org.apache.commons.beanutils2;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -19,12 +17,13 @@ package org.apache.commons.beanutils2;
  * under the License.
  */
 
+package org.apache.commons.beanutils2;
+
 /**
  * An exception that indicates that a property is not readable (that there is not getter method).
  */
 public class PropertyNotReadableException
-    extends BeanReflectionException
-{
+        extends BeanReflectionException {
 
     private static final long serialVersionUID = 201206192234L;
 
@@ -34,17 +33,15 @@ public class PropertyNotReadableExceptio
      * Constructs a new instance of PropertyNotReadableFoundException.
      *
      * @param propertyName the name of the property that isn't readable
-     * @param beanType the class the property was searched for
-     * @param cause the cause of this exception
+     * @param beanType     the class the property was searched for
+     * @param cause        the cause of this exception
      */
-    public PropertyNotReadableException( String propertyName, Class<?> beanType, Throwable cause )
-    {
-        super( cause, beanType, "Property %s in type %s is not readable", propertyName, beanType.getName() );
+    public PropertyNotReadableException(String propertyName, Class<?> beanType, Throwable cause) {
+        super(cause, beanType, "Property %s in type %s is not readable", propertyName, beanType.getName());
         this.propertyName = propertyName;
     }
 
-    public String getPropertyName()
-    {
+    public String getPropertyName() {
         return this.propertyName;
     }
 

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyNotWritableException.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyNotWritableException.java?rev=1592200&r1=1592199&r2=1592200&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyNotWritableException.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertyNotWritableException.java Sat May  3 13:14:53 2014
@@ -1,5 +1,3 @@
-package org.apache.commons.beanutils2;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -19,12 +17,13 @@ package org.apache.commons.beanutils2;
  * under the License.
  */
 
+package org.apache.commons.beanutils2;
+
 /**
  * An exception that indiactes that a property is not writable (that there is not setter method)
  */
 public class PropertyNotWritableException
-    extends BeanReflectionException
-{
+        extends BeanReflectionException {
 
     private static final long serialVersionUID = 201206192234L;
 
@@ -34,17 +33,15 @@ public class PropertyNotWritableExceptio
      * Constructs a new instance of PropertyNotWritableFoundException.
      *
      * @param propertyName the name of the property that isn't readable
-     * @param beanType the class the property was searched for
-     * @param cause the cause of this exception
+     * @param beanType     the class the property was searched for
+     * @param cause        the cause of this exception
      */
-    public PropertyNotWritableException( String propertyName, Class<?> beanType, Throwable cause )
-    {
-        super( cause, beanType, "Property %s in type %s is not writable", propertyName, beanType.getName() );
+    public PropertyNotWritableException(String propertyName, Class<?> beanType, Throwable cause) {
+        super(cause, beanType, "Property %s in type %s is not writable", propertyName, beanType.getName());
         this.propertyName = propertyName;
     }
 
-    public String getPropertyName()
-    {
+    public String getPropertyName() {
         return this.propertyName;
     }
 

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertySetterInvocationException.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertySetterInvocationException.java?rev=1592200&r1=1592199&r2=1592200&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertySetterInvocationException.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertySetterInvocationException.java Sat May  3 13:14:53 2014
@@ -1,5 +1,3 @@
-package org.apache.commons.beanutils2;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -19,26 +17,25 @@ package org.apache.commons.beanutils2;
  * under the License.
  */
 
+package org.apache.commons.beanutils2;
+
 /**
  * An exception indicating that calling the setter of a property caused an exception.
  */
 public class PropertySetterInvocationException
-    extends MethodInvocationException
-{
+        extends MethodInvocationException {
 
     private static final long serialVersionUID = 201206192258L;
 
     private final String propertyName;
 
-    public PropertySetterInvocationException( String propertyName, String setterMethodName, Class<?> target,
-                                              Throwable cause )
-    {
-        super( setterMethodName, target, cause );
+    public PropertySetterInvocationException(String propertyName, String setterMethodName, Class<?> target,
+                                             Throwable cause) {
+        super(setterMethodName, target, cause);
         this.propertyName = propertyName;
     }
 
-    public String getPropertyName()
-    {
+    public String getPropertyName() {
         return propertyName;
     }
 

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertySetterNotAccessibleException.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertySetterNotAccessibleException.java?rev=1592200&r1=1592199&r2=1592200&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertySetterNotAccessibleException.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/PropertySetterNotAccessibleException.java Sat May  3 13:14:53 2014
@@ -1,5 +1,3 @@
-package org.apache.commons.beanutils2;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -19,23 +17,22 @@ package org.apache.commons.beanutils2;
  * under the License.
  */
 
+package org.apache.commons.beanutils2;
+
 public class PropertySetterNotAccessibleException
-    extends MethodNotAccessibleException
-{
+        extends MethodNotAccessibleException {
 
     private static final long serialVersionUID = 201207151513L;
 
     private final String propertyName;
 
-    public PropertySetterNotAccessibleException( String propertyName, String setterMethodName, Class<?> target,
-                                                 Throwable cause )
-    {
-        super( setterMethodName, target, cause );
+    public PropertySetterNotAccessibleException(String propertyName, String setterMethodName, Class<?> target,
+                                                Throwable cause) {
+        super(setterMethodName, target, cause);
         this.propertyName = propertyName;
     }
 
-    public String getPropertyName()
-    {
+    public String getPropertyName() {
         return propertyName;
     }
 

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/Transformer.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/Transformer.java?rev=1592200&r1=1592199&r2=1592200&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/Transformer.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/Transformer.java Sat May  3 13:14:53 2014
@@ -1,5 +1,3 @@
-package org.apache.commons.beanutils2;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -19,18 +17,17 @@ package org.apache.commons.beanutils2;
  * under the License.
  */
 
+package org.apache.commons.beanutils2;
+
 import java.lang.reflect.Type;
 
 /**
- *
- *
  * @param <S> The source object type
  * @param <T> The target object type
  */
-public interface Transformer<S, T>
-{
+public interface Transformer<S, T> {
 
-    T convert( S input );
+    T convert(S input);
 
     Type getSourceType();
 



Mime
View raw message