incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1002678 - /incubator/bval/sandbox/lang3-work/bval-jsr303/src/main/java/org/apache/bval/jsr303/util/NestedPathNavigator.java
Date Wed, 29 Sep 2010 15:24:01 GMT
Author: mbenson
Date: Wed Sep 29 15:24:01 2010
New Revision: 1002678

URL: http://svn.apache.org/viewvc?rev=1002678&view=rev
Log:
same width for comments

Modified:
    incubator/bval/sandbox/lang3-work/bval-jsr303/src/main/java/org/apache/bval/jsr303/util/NestedPathNavigator.java

Modified: incubator/bval/sandbox/lang3-work/bval-jsr303/src/main/java/org/apache/bval/jsr303/util/NestedPathNavigator.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/lang3-work/bval-jsr303/src/main/java/org/apache/bval/jsr303/util/NestedPathNavigator.java?rev=1002678&r1=1002677&r2=1002678&view=diff
==============================================================================
--- incubator/bval/sandbox/lang3-work/bval-jsr303/src/main/java/org/apache/bval/jsr303/util/NestedPathNavigator.java
(original)
+++ incubator/bval/sandbox/lang3-work/bval-jsr303/src/main/java/org/apache/bval/jsr303/util/NestedPathNavigator.java
Wed Sep 29 15:24:01 2010
@@ -31,8 +31,7 @@ import org.apache.bval.util.PropertyAcce
 import org.apache.commons.lang3.reflect.TypeUtils;
 
 /**
- * Navigates a {@link ValidationContext} to a specified location, which may be
- * <code>null</code>.
+ * Navigates a {@link ValidationContext} to a specified location, which may be <code>null</code>.
  * 
  * @version $Rev$ $Date$
  */
@@ -99,8 +98,8 @@ public class NestedPathNavigator {
                     access = new IndexedAccess(type, index);
                     validationContext.setCurrentIndex(index);
                 } catch (NumberFormatException e) {
-                    throw new UnknownPropertyException(String.format("Cannot parse %s as
an array/iterable index",
-                        token), e);
+                    throw new UnknownPropertyException(
+                        String.format("Cannot parse %s as an array/iterable index", token),
e);
                 }
             } else if (KeyedAccess.getJavaElementType(type) != null) {
                 access = new KeyedAccess(type, token);
@@ -125,8 +124,8 @@ public class NestedPathNavigator {
 
             if (metaBean instanceof DynamicMetaBean) {
                 metaBean =
-                    metaBean.resolveMetaBean(validationContext.getBean() == null ? rawType
: validationContext
-                        .getBean());
+                    metaBean
+                        .resolveMetaBean(validationContext.getBean() == null ? rawType :
validationContext.getBean());
             }
             MetaProperty mp = metaBean.getProperty(token);
             if (mp == null) {
@@ -137,16 +136,16 @@ public class NestedPathNavigator {
         }
 
         /**
-         * If we currently have a property, navigate the context such that the
-         * property becomes the bean, in preparation for another property.
+         * If we currently have a property, navigate the context such that the property becomes
the bean, in preparation
+         * for another property.
          * 
          * @param validationContext
          */
         protected void moveDownIfNecessary() {
             MetaProperty mp = validationContext.getMetaProperty();
             if (mp != null) {
-                validationContext.moveDown(mp, new NullSafePropertyAccess(validationContext.getMetaBean()
-                    .getBeanClass(), mp.getName()));
+                validationContext.moveDown(mp, new NullSafePropertyAccess(
+                    validationContext.getMetaBean().getBeanClass(), mp.getName()));
             }
         }
 



Mime
View raw message