myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject svn commit: r955357 - in /myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator: core/el/DefaultELHelper.java util/ReflectionUtils.java
Date Wed, 16 Jun 2010 19:33:30 GMT
Author: gpetracek
Date: Wed Jun 16 19:33:30 2010
New Revision: 955357

URL: http://svn.apache.org/viewvc?rev=955357&view=rev
Log:
cleanup

Modified:
    myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/el/DefaultELHelper.java
    myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/util/ReflectionUtils.java

Modified: myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/el/DefaultELHelper.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/el/DefaultELHelper.java?rev=955357&r1=955356&r2=955357&view=diff
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/el/DefaultELHelper.java
(original)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/el/DefaultELHelper.java
Wed Jun 16 19:33:30 2010
@@ -22,7 +22,6 @@ import org.apache.myfaces.extensions.val
 import org.apache.myfaces.extensions.validator.internal.UsageCategory;
 import org.apache.myfaces.extensions.validator.internal.ToDo;
 import org.apache.myfaces.extensions.validator.internal.Priority;
-import org.apache.myfaces.extensions.validator.util.ExtValUtils;
 import org.apache.myfaces.extensions.validator.util.ReflectionUtils;
 import org.apache.myfaces.extensions.validator.util.ProxyUtils;
 import org.apache.myfaces.extensions.validator.core.WebXmlParameter;
@@ -128,8 +127,7 @@ public class DefaultELHelper implements 
                 return null;
             }
 
-            Class entityClass = ExtValUtils.getELHelper()
-                .getTypeOfExpression(facesContext, result.getBaseExpression());
+            Class entityClass = getTypeOfExpression(facesContext, result.getBaseExpression());
 
             if(entityClass == null)
             {
@@ -267,7 +265,7 @@ public class DefaultELHelper implements 
     {
         String[] properties = propertyChain.split("\\.");
 
-        Object currentPropertyValue = ExtValUtils.getELHelper().getBean(properties[0]);
+        Object currentPropertyValue = getBean(properties[0]);
 
         Method currentMethod;
         String currentPropertyName;

Modified: myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/util/ReflectionUtils.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/util/ReflectionUtils.java?rev=955357&r1=955356&r2=955357&view=diff
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/util/ReflectionUtils.java
(original)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/util/ReflectionUtils.java
Wed Jun 16 19:33:30 2010
@@ -197,8 +197,7 @@ public class ReflectionUtils
 
             //no is - it's only possible at properties not at bean level
             currentMethod = tryToGetMethod(ProxyUtils.getUnproxiedClass(currentBase.getClass()),
-                "get" + currentProperty.substring(0, 1).toUpperCase() +
-                    currentProperty.substring(1, currentProperty.length()));
+                "get" + currentProperty.substring(0, 1).toUpperCase() + currentProperty.substring(1));
             currentBase = tryToInvokeMethod(currentBase, currentMethod);
         }
 



Mime
View raw message