From 3c40171b04ac1de5a3f477fc9a55cdba6058a085 Mon Sep 17 00:00:00 2001 From: Maxime Mériouma-Caron Date: Tue, 1 Dec 2015 19:35:39 -0500 Subject: Try fix --- .../src/main/java/com/google/gwt/query/rebind/JsonBuilderGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/JsonBuilderGenerator.java b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/JsonBuilderGenerator.java index 672ef1e7..86bf6377 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/JsonBuilderGenerator.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/JsonBuilderGenerator.java @@ -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() -- cgit v1.2.3