From b19234cbf3ace9ceeae0713d7fad9e77b797ca48 Mon Sep 17 00:00:00 2001 From: Sven Kubiak Date: Mon, 28 Aug 2017 15:57:49 +0200 Subject: [PATCH] version bumps --- pom.xml | 2 +- src/main/java/de/svenkubiak/jpushover/JPushover.java | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) 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();