myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r921741 - /myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/TaglibAnnotationVisitor.java
Date Thu, 11 Mar 2010 09:05:22 GMT
Author: lofwyr
Date: Thu Mar 11 09:05:21 2010
New Revision: 921741

URL: http://svn.apache.org/viewvc?rev=921741&view=rev
Log:
Fix docu gereration: allowed values in tld doc

Modified:
    myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/TaglibAnnotationVisitor.java

Modified: myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/TaglibAnnotationVisitor.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/TaglibAnnotationVisitor.java?rev=921741&r1=921740&r2=921741&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/TaglibAnnotationVisitor.java
(original)
+++ myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/TaglibAnnotationVisitor.java
Thu Mar 11 09:05:21 2010
@@ -321,14 +321,19 @@ public class TaglibAnnotationVisitor ext
     UIComponentTagAttribute attributeTag = decl.getAnnotation(UIComponentTagAttribute.class);
     if (attributeTag != null) {
       if (null != attributeTag.type() && attributeTag.type().length > 0) {
-        description.append("<br />Type: <code>" + (attributeTag.type().length
== 1
-              ? attributeTag.type()[0] : Arrays.toString(attributeTag.type())) + "</code>");
+        description.append("<br />Type: <code>")
+            .append(attributeTag.type().length == 1 ? attributeTag.type()[0] : Arrays.toString(attributeTag.type()))
+            .append("</code>");
       }
       if (StringUtils.isNotEmpty(attributeTag.defaultValue())) {
-        description.append("<br />Default: <code>" + attributeTag.defaultValue()
+ "</code>");
+        description.append("<br />Default: <code>")
+            .append(attributeTag.defaultValue())
+            .append("</code>");
       }
       if (attributeTag.allowedValues().length > 0) {
-        description.append("<br />Allowed Values: <code>" + attributeTag.allowedValues()
+ "</code>");
+        description.append("<br />Allowed Values: <code>")
+            .append(Arrays.toString(attributeTag.allowedValues()))
+            .append("</code>");
       }
     }
     ExtensionTag extensionTag = decl.getAnnotation(ExtensionTag.class);



Mime
View raw message