incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1080653 - /incubator/bval/sandbox/lang3-work/bval-jsr303d/src/main/java/org/apache/bval/jsr303/dynamic/DynamicMetaGraphManagerImpl.java
Date Fri, 11 Mar 2011 16:36:44 GMT
Author: mbenson
Date: Fri Mar 11 16:36:43 2011
New Revision: 1080653

URL: http://svn.apache.org/viewvc?rev=1080653&view=rev
Log:
type-safety

Modified:
    incubator/bval/sandbox/lang3-work/bval-jsr303d/src/main/java/org/apache/bval/jsr303/dynamic/DynamicMetaGraphManagerImpl.java

Modified: incubator/bval/sandbox/lang3-work/bval-jsr303d/src/main/java/org/apache/bval/jsr303/dynamic/DynamicMetaGraphManagerImpl.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/lang3-work/bval-jsr303d/src/main/java/org/apache/bval/jsr303/dynamic/DynamicMetaGraphManagerImpl.java?rev=1080653&r1=1080652&r2=1080653&view=diff
==============================================================================
--- incubator/bval/sandbox/lang3-work/bval-jsr303d/src/main/java/org/apache/bval/jsr303/dynamic/DynamicMetaGraphManagerImpl.java
(original)
+++ incubator/bval/sandbox/lang3-work/bval-jsr303d/src/main/java/org/apache/bval/jsr303/dynamic/DynamicMetaGraphManagerImpl.java
Fri Mar 11 16:36:43 2011
@@ -378,7 +378,7 @@ final class DynamicMetaGraphManagerImpl 
         private final Iterator<Pair<? extends PathImpl, Class<?>>> wrapped;
 
         /** next result */
-        private Object next;
+        private MetaBean next;
 
         /** current path to leaf info */
         private PathImpl path;
@@ -431,7 +431,7 @@ final class DynamicMetaGraphManagerImpl 
                 throw new NoSuchElementException();
             }
             try {
-                return (MetaBean) next;
+                return next;
             } finally {
                 next = read();
             }
@@ -451,7 +451,7 @@ final class DynamicMetaGraphManagerImpl 
             return this;
         }
 
-        private Object read() {
+        private MetaBean read() {
             outer: do {
                 if (dynamicInfoIter != null) {
                     while (dynamicInfoIter.hasNext()) {



Mime
View raw message