[weld-commits] Weld SVN: r6369 - extensions/trunk/src/main/java/org/jboss/weld/extensions/util.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Tue Jun 1 09:55:10 EDT 2010


Author: shane.bryzak at jboss.com
Date: 2010-06-01 09:55:09 -0400 (Tue, 01 Jun 2010)
New Revision: 6369

Modified:
   extensions/trunk/src/main/java/org/jboss/weld/extensions/util/AbstractBeanProperty.java
Log:
renamed isValid() -> exists()


Modified: extensions/trunk/src/main/java/org/jboss/weld/extensions/util/AbstractBeanProperty.java
===================================================================
--- extensions/trunk/src/main/java/org/jboss/weld/extensions/util/AbstractBeanProperty.java	2010-06-01 12:01:55 UTC (rev 6368)
+++ extensions/trunk/src/main/java/org/jboss/weld/extensions/util/AbstractBeanProperty.java	2010-06-01 13:55:09 UTC (rev 6369)
@@ -57,9 +57,9 @@
    private boolean isFieldProperty;
    
    /**
-    * Flag indicating whether a valid property has been found
+    * Flag indicating whether the property exists
     */
-   private boolean valid = false;
+   private boolean exists = false;
    
    private Type propertyType;
    
@@ -83,7 +83,7 @@
          if (fieldMatcher.matches(f))
          {
             setupFieldProperty(f);            
-            valid = true;
+            exists = true;
             return;
          }
       }      
@@ -94,7 +94,7 @@
          if (fieldMatcher.matches(f)) 
          {
             setupFieldProperty(f);
-            valid = true;
+            exists = true;
             return;
          }
       }
@@ -121,7 +121,7 @@
                this.propertySetter = getSetterMethod(targetClass, this.name);
                this.propertyType = this.propertyGetter.getGenericReturnType();
                isFieldProperty = false;               
-               valid = true;
+               exists = true;
             }
             else
             {
@@ -209,9 +209,9 @@
     * 
     * @return
     */
-   public boolean isValid()
+   public boolean exists()
    {
-      return valid;
+      return exists;
    }      
    
    /**



More information about the weld-commits mailing list