Update checkstyle from 7.6 to 8.21

This commit is contained in:
Thijs Wiefferink 2019-06-01 17:08:30 +02:00
parent 03de0ff252
commit 41ced9ee6c
4 changed files with 7 additions and 9 deletions

View File

@ -96,7 +96,7 @@ public class RegionSign {
} }
/** /**
* Get the material of the sign * Get the material of the sign.
* @return Material of the sign, normally {@link Material#WALL_SIGN} or {@link Material#SIGN_POST}, but could be something else or null. * @return Material of the sign, normally {@link Material#WALL_SIGN} or {@link Material#SIGN_POST}, but could be something else or null.
*/ */
public Material getMaterial() { public Material getMaterial() {

View File

@ -512,7 +512,7 @@ public class FileManager extends Manager {
} }
/** /**
* Update a list of regions * Update a list of regions.
* @param regions The list of regions to update. * @param regions The list of regions to update.
*/ */
public void updateRegions(List<GeneralRegion> regions) { public void updateRegions(List<GeneralRegion> regions) {

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC <!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN" "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> "https://checkstyle.org/dtds/configuration_1_3.dtd">
<!-- <!--
Based on the Google Java Style Guide: https://google.github.io/styleguide/javaguide.html Based on the Google Java Style Guide: https://google.github.io/styleguide/javaguide.html
@ -42,9 +42,7 @@
<property name="tokens" value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/> <property name="tokens" value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
</module> </module>
<module name="NeedBraces"/> <module name="NeedBraces"/>
<module name="LeftCurly"> <module name="LeftCurly" />
<property name="maxLineLength" value="100"/>
</module>
<module name="RightCurly"> <module name="RightCurly">
<property name="id" value="RightCurlySame"/> <property name="id" value="RightCurlySame"/>
<property name="tokens" value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_DO"/> <property name="tokens" value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_DO"/>

View File

@ -68,12 +68,12 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId> <artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version> <version>3.1.0</version>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.puppycrawl.tools</groupId> <groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId> <artifactId>checkstyle</artifactId>
<version>7.6</version> <version>8.21</version>
</dependency> </dependency>
</dependencies> </dependencies>
<executions> <executions>