Update checkstyle

This commit is contained in:
md_5 2021-07-03 11:15:17 +10:00
parent 6f7331e852
commit 061a7c67bd
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11
3 changed files with 7 additions and 3 deletions

View File

@ -13,10 +13,12 @@ public class BungeeLogger extends Logger
private final LogDispatcher dispatcher = new LogDispatcher( this ); private final LogDispatcher dispatcher = new LogDispatcher( this );
// CHECKSTYLE:OFF
@SuppressWarnings( @SuppressWarnings(
{ {
"CallToPrintStackTrace", "CallToThreadStartDuringObjectConstruction" "CallToPrintStackTrace", "CallToThreadStartDuringObjectConstruction"
}) })
// CHECKSTYLE:ON
@SuppressFBWarnings("SC_START_IN_CTOR") @SuppressFBWarnings("SC_START_IN_CTOR")
public BungeeLogger(String loggerName, String filePattern, ConsoleReader reader) public BungeeLogger(String loggerName, String filePattern, ConsoleReader reader)
{ {

View File

@ -132,7 +132,7 @@
<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>3.1.1</version> <version>3.1.2</version>
<executions> <executions>
<execution> <execution>
<phase>process-classes</phase> <phase>process-classes</phase>
@ -150,14 +150,14 @@
<dependency> <dependency>
<groupId>com.puppycrawl.tools</groupId> <groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId> <artifactId>checkstyle</artifactId>
<version>8.36.2</version> <version>8.44</version>
</dependency> </dependency>
</dependencies> </dependencies>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId> <artifactId>animal-sniffer-maven-plugin</artifactId>
<version>1.19</version> <version>1.20</version>
<executions> <executions>
<execution> <execution>
<phase>process-classes</phase> <phase>process-classes</phase>

View File

@ -31,10 +31,12 @@ public class ModuleManager
knownSources.put( "jenkins", new JenkinsModuleSource() ); knownSources.put( "jenkins", new JenkinsModuleSource() );
} }
// CHECKSTYLE:OFF
@SuppressFBWarnings( @SuppressFBWarnings(
{ {
"SF_SWITCH_FALLTHROUGH", "SF_SWITCH_NO_DEFAULT" "SF_SWITCH_FALLTHROUGH", "SF_SWITCH_NO_DEFAULT"
}) })
// CHECKSTYLE:ON
public void load(ProxyServer proxy, File moduleDirectory) throws Exception public void load(ProxyServer proxy, File moduleDirectory) throws Exception
{ {
moduleDirectory.mkdir(); moduleDirectory.mkdir();