diff --git a/checkstyle.xml b/checkstyle.xml index fbbcaf38bb6..76626fa6dee 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 c3cdaad7af8..8c4894a76ac 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 List get() throws IOException 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 dd51ded733c..eec128820f4 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