diff options
author | Maxime Mériouma-Caron <maxime.meriouma@arcbees.com> | 2015-12-01 19:35:39 -0500 |
---|---|---|
committer | Maxime Mériouma-Caron <maxime.meriouma@arcbees.com> | 2015-12-01 19:35:39 -0500 |
commit | 3c40171b04ac1de5a3f477fc9a55cdba6058a085 (patch) | |
tree | 0b363862b073b22066d06bd193002a53fe4e0d72 | |
parent | b708ab292e707ea5ea1f988a126a6b56ccb2c0ae (diff) | |
download | gwtquery-3c40171b04ac1de5a3f477fc9a55cdba6058a085.tar.gz gwtquery-3c40171b04ac1de5a3f477fc9a55cdba6058a085.zip |
Try fix
-rw-r--r-- | gwtquery-core/src/main/java/com/google/gwt/query/rebind/JsonBuilderGenerator.java | 2 |
1 files changed, 1 insertions, 1 deletions
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() |