incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r980601 - /incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/BeanValidationContext.java
Date Thu, 29 Jul 2010 22:41:53 GMT
Author: mbenson
Date: Thu Jul 29 22:41:53 2010
New Revision: 980601

URL: http://svn.apache.org/viewvc?rev=980601&view=rev
Log:
compiler warnings + 1 TODO

Modified:
    incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/BeanValidationContext.java

Modified: incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/BeanValidationContext.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/BeanValidationContext.java?rev=980601&r1=980600&r2=980601&view=diff
==============================================================================
--- incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/BeanValidationContext.java
(original)
+++ incubator/bval/trunk/bval-core/src/main/java/org/apache/bval/BeanValidationContext.java
Thu Jul 29 22:41:53 2010
@@ -57,6 +57,7 @@ public class BeanValidationContext<T ext
     private AccessStrategy access;
 
     /** set of objects already validated to avoid endless loops. */
+    @SuppressWarnings("unchecked")
     protected Map validatedObjects;
 
     /**
@@ -74,6 +75,7 @@ public class BeanValidationContext<T ext
      * Create a new BeanValidationContext instance.
      * @param listener
      */
+    @SuppressWarnings("unchecked")
     public BeanValidationContext(T listener) {
         this(listener, new IdentityHashMap());
     }
@@ -83,6 +85,7 @@ public class BeanValidationContext<T ext
      * @param listener
      * @param validatedMap
      */
+    @SuppressWarnings("unchecked")
     protected BeanValidationContext(T listener, Map validatedMap) {
         this.listener = listener;
         this.validatedObjects = validatedMap;
@@ -107,6 +110,7 @@ public class BeanValidationContext<T ext
      * {@inheritDoc}
      * Here, state equates to a given bean reference.
      */
+    @SuppressWarnings("unchecked")
     public boolean collectValidated() {
         return validatedObjects.put(getBean(), Boolean.TRUE) == null;
     }
@@ -292,6 +296,7 @@ public class BeanValidationContext<T ext
      * {@inheritDoc}
      */
     public void moveDown(MetaProperty prop, AccessStrategy access) {
+        //TODO following call seems to do nothing:
         setMetaProperty(prop);
         setBean(getPropertyValue(access), prop.getMetaBean());
     }



Mime
View raw message