geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1596399 - /geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/AnnotationFinder.java
Date Tue, 20 May 2014 20:35:16 GMT
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() {



Mime
View raw message