diff --git a/pom.xml b/pom.xml index ad36716..e1bb025 100644 --- a/pom.xml +++ b/pom.xml @@ -39,7 +39,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.6.1 + 3.6.2 1.8 1.8 diff --git a/src/main/java/de/svenkubiak/jpushover/JPushover.java b/src/main/java/de/svenkubiak/jpushover/JPushover.java index bd58b6b..7e1dbe5 100644 --- a/src/main/java/de/svenkubiak/jpushover/JPushover.java +++ b/src/main/java/de/svenkubiak/jpushover/JPushover.java @@ -247,7 +247,10 @@ public class JPushover { boolean valid = false; try { - final HttpResponse httpResponse = Request.Post(Constants.VALIDATION_URL.toString()).bodyForm(params, Consts.UTF_8).execute().returnResponse(); + final HttpResponse httpResponse = Request.Post(Constants.VALIDATION_URL.toString()) + .bodyForm(params, Consts.UTF_8) + .execute() + .returnResponse(); if (httpResponse != null && httpResponse.getStatusLine().getStatusCode() == HTTP_OK) { final String response = IOUtils.toString(httpResponse.getEntity().getContent(), Consts.UTF_8); @@ -296,7 +299,10 @@ public class JPushover { JPushoverResponse jPushoverResponse = new JPushoverResponse().isSuccessful(false); try { - final HttpResponse httpResponse = Request.Post(Constants.MESSAGES_URL.toString()).bodyForm(params, Consts.UTF_8).execute().returnResponse(); + final HttpResponse httpResponse = Request.Post(Constants.MESSAGES_URL.toString()) + .bodyForm(params, Consts.UTF_8) + .execute() + .returnResponse(); if (httpResponse != null) { final int status = httpResponse.getStatusLine().getStatusCode();