Browse Source

Try fix

tags/gwtquery-project-1.5-beta1
Maxime Mériouma-Caron 8 years ago
parent
commit
3c40171b04

+ 1
- 1
gwtquery-core/src/main/java/com/google/gwt/query/rebind/JsonBuilderGenerator.java View File

@@ -209,7 +209,7 @@ public class JsonBuilderGenerator extends Generator {
if (arr != null) {
sw.println("return " + ret + ";");
} else {
sw.println("return a == null ? null : Arrays.asList(" + ret + ");");
sw.println("return (a == null ? null : Arrays.asList(" + ret + "));");
}
} else if (method.getReturnType().isEnum() != null) {
sw.println("return " + method.getReturnType().getQualifiedSourceName()

Loading…
Cancel
Save