From: Maxime Mériouma-Caron Date: Wed, 2 Dec 2015 00:35:39 +0000 (-0500) Subject: Try fix X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3c40171b04ac1de5a3f477fc9a55cdba6058a085;p=gwtquery.git Try fix --- 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()