Author: nbelaevski
Date: 2010-07-01 14:28:45 -0400 (Thu, 01 Jul 2010)
New Revision: 17698
Modified:
root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/templatecompiler/RendererClassVisitor.java
root/commons/trunk/api/src/main/java/org/richfaces/renderkit/ComponentAttribute.java
Log:
Small commons refactoring
Modified:
root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/templatecompiler/RendererClassVisitor.java
===================================================================
---
root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/templatecompiler/RendererClassVisitor.java 2010-07-01
16:21:37 UTC (rev 17697)
+++
root/cdk/trunk/plugins/generator/src/main/java/org/richfaces/cdk/templatecompiler/RendererClassVisitor.java 2010-07-01
18:28:45 UTC (rev 17698)
@@ -303,7 +303,6 @@
Set<EventName> eventNames = property.getEventNames();
if (eventNames != null && !eventNames.isEmpty()) {
sb.append(".setEventNames(");
- sb.append("new String[] {");
Collection<String> eventNamesStrings =
Collections2.transform(eventNames,
new Function<EventName, String>() {
@Override
@@ -312,7 +311,7 @@
}
});
sb.append(getEscapedStringsArray(eventNamesStrings));
- sb.append("})");
+ sb.append(")");
}
break;
}
Modified:
root/commons/trunk/api/src/main/java/org/richfaces/renderkit/ComponentAttribute.java
===================================================================
---
root/commons/trunk/api/src/main/java/org/richfaces/renderkit/ComponentAttribute.java 2010-07-01
16:21:37 UTC (rev 17697)
+++
root/commons/trunk/api/src/main/java/org/richfaces/renderkit/ComponentAttribute.java 2010-07-01
18:28:45 UTC (rev 17698)
@@ -88,7 +88,7 @@
* @param eventNames the eventNames to set
* @return
*/
- public ComponentAttribute setEventNames(String[] eventNames) {
+ public ComponentAttribute setEventNames(String... eventNames) {
this.eventNames = eventNames;
return this;
Show replies by date