You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xbean-scm@geronimo.apache.org by rm...@apache.org on 2014/05/20 22:35:16 UTC

svn commit: r1596399 - /geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/AnnotationFinder.java

Author: rmannibucau
Date: Tue May 20 20:35:16 2014
New Revision: 1596399

URL: http://svn.apache.org/r1596399
Log:
Same for field (still adapted from Matt Benson github fork), doing type checking lazily in getType since normally it is useless

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=1596399&r1=1596398&r2=1596399&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 Tue May 20 20:35:16 2014
@@ -1646,8 +1646,12 @@ public class AnnotationFinder implements
             return declaringClass;
         }
 
-        public String getType() {
-            return type;
+        public String getType() { // if this method starts to be used internally move this to constructors and just return type
+            final Type t = Type.getType(type);
+            if (t.getClassName() == null) {
+                return t.getDescriptor();
+            }
+            return t.getClassName();
         }
 
         public String toString() {