From 38a9ccc976138c845807e4f53402f40739390ae8 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 20 Oct 2017 20:03:35 -0400 Subject: [PATCH] Update checkstyle to version 8.3 --- checkstyle.xml | 1 + .../main/java/net/runelite/http/api/xtea/XteaClient.java | 2 ++ pom.xml | 7 +++++++ 3 files changed, 10 insertions(+) diff --git a/checkstyle.xml b/checkstyle.xml index fbbcaf38bb..76626fa6de 100644 --- a/checkstyle.xml +++ b/checkstyle.xml @@ -41,6 +41,7 @@ + diff --git a/http-api/src/main/java/net/runelite/http/api/xtea/XteaClient.java b/http-api/src/main/java/net/runelite/http/api/xtea/XteaClient.java index c3cdaad7af..8c4894a76a 100644 --- a/http-api/src/main/java/net/runelite/http/api/xtea/XteaClient.java +++ b/http-api/src/main/java/net/runelite/http/api/xtea/XteaClient.java @@ -88,7 +88,9 @@ public class XteaClient try (ResponseBody body = response.body()) { InputStream in = body.byteStream(); + // CHECKSTYLE:OFF return RuneliteAPI.GSON.fromJson(new InputStreamReader(in), new TypeToken>() { }.getType()); + // CHECKSTYLE:ON } catch (JsonParseException ex) { diff --git a/pom.xml b/pom.xml index dd51ded733..eec128820f 100644 --- a/pom.xml +++ b/pom.xml @@ -163,6 +163,13 @@ org.apache.maven.plugins maven-checkstyle-plugin 2.17 + + + com.puppycrawl.tools + checkstyle + 8.3 + + verify-style