geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1617085 - /geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/AnnotationFinder.java
Date Sun, 10 Aug 2014 10:25:16 GMT
Author: rmannibucau
Date: Sun Aug 10 10:25:16 2014
New Revision: 1617085

URL: http://svn.apache.org/r1617085
Log:
no need to cast twice asSubclass

Modified:
    geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/AnnotationFinder.java

Modified: geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/AnnotationFinder.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/AnnotationFinder.java?rev=1617085&r1=1617084&r2=1617085&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/AnnotationFinder.java
(original)
+++ geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/AnnotationFinder.java
Sun Aug 10 10:25:16 2014
@@ -1037,10 +1037,9 @@ public class AnnotationFinder implements
                 if (name.equals(classInfo.superType)) {
 
                     if (clazz.isAssignableFrom(classInfo.get())) {
-
-                        classes.add(classInfo.get().asSubclass(clazz));
-
-                        classes.addAll(_findSubclasses(classInfo.get().asSubclass(clazz)));
+                        final Class<? extends T> asSubclass = classInfo.get().asSubclass(clazz);
+                        classes.add(asSubclass);
+                        classes.addAll(_findSubclasses(asSubclass));
                     }
                 }
 



Mime
View raw message