diff --git a/samples/client/petstore/java/src/main/java/com/wordnik/client/ApiInvoker.java b/samples/client/petstore/java/src/main/java/com/wordnik/client/ApiInvoker.java index 2e1dff71027..de64ba9f1e7 100644 --- a/samples/client/petstore/java/src/main/java/com/wordnik/client/ApiInvoker.java +++ b/samples/client/petstore/java/src/main/java/com/wordnik/client/ApiInvoker.java @@ -125,7 +125,7 @@ public class ApiInvoker { throw new ApiException(500, "unknown method type " + method); } if(response.getClientResponseStatus() == ClientResponse.Status.NO_CONTENT) { - return null; + return null; } else if(response.getClientResponseStatus().getFamily() == Family.SUCCESSFUL) { return (String) response.getEntity(String.class); diff --git a/src/main/resources/Java/apiInvoker.mustache b/src/main/resources/Java/apiInvoker.mustache index f755728ffa5..bdeb632f740 100644 --- a/src/main/resources/Java/apiInvoker.mustache +++ b/src/main/resources/Java/apiInvoker.mustache @@ -125,7 +125,7 @@ public class ApiInvoker { throw new ApiException(500, "unknown method type " + method); } if(response.getClientResponseStatus() == ClientResponse.Status.NO_CONTENT) { - return null; + return null; } else if(response.getClientResponseStatus().getFamily() == Family.SUCCESSFUL) { return (String) response.getEntity(String.class);