Update checkstyle to version 8.3

This commit is contained in:
Adam
2017-10-20 20:03:35 -04:00
parent e0e07a4fb8
commit 38a9ccc976
3 changed files with 10 additions and 0 deletions

View File

@@ -41,6 +41,7 @@
</module>
<module name="WhitespaceAround"/>
<module name="UnusedImports"/>
<module name="SuppressionCommentFilter"/>
</module>
<module name="RegexpMultiline">
<property name="format" value="else[ \t]*[\r\n]+[ \t]*if"/>

View File

@@ -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<List<XteaKey>>() { }.getType());
// CHECKSTYLE:ON
}
catch (JsonParseException ex)
{

View File

@@ -163,6 +163,13 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>8.3</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>verify-style</id>