Title: [570] trunk/qdox/src/java/com/thoughtworks/qdox/model/Type.java: reconsidered Type.toString(); added toGenericString(), which is close to java-API
Revision
570
Author
rfscholte
Date
2009-02-25 15:29:43 -0600 (Wed, 25 Feb 2009)

Log Message

reconsidered Type.toString(); added toGenericString(), which is close to java-API

Modified Paths

Diff

Modified: trunk/qdox/src/java/com/thoughtworks/qdox/model/Type.java (569 => 570)

--- trunk/qdox/src/java/com/thoughtworks/qdox/model/Type.java	2009-02-25 21:18:25 UTC (rev 569)
+++ trunk/qdox/src/java/com/thoughtworks/qdox/model/Type.java	2009-02-25 21:29:43 UTC (rev 570)
@@ -117,6 +117,14 @@
     }
 
     public String toString() {
+        if (dimensions == 0) return getValue();
+        StringBuffer buff = new StringBuffer(getValue());
+        for (int i = 0; i < dimensions; i++) buff.append("[]");
+        String result = buff.toString();
+        return result;
+    }
+
+    public String toGenericString() {
         if (dimensions == 0) return getGenericValue();
         StringBuffer buff = new StringBuffer(getGenericValue());
         for (int i = 0; i < dimensions; i++) buff.append("[]");


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to