You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2010/03/11 10:05:22 UTC
svn commit: r921741 -
/myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/TaglibAnnotationVisitor.java
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);