Upgrade to com.puppycrawl.tools 8.18 as earlier versions were reported to may cause security problems.

This commit is contained in:
Norman Maurer 2019-03-26 09:15:37 +01:00
parent 5a0cedf3e4
commit 5987566c1c
3 changed files with 9 additions and 4 deletions

View File

@ -71,7 +71,7 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>6.16.1</version>
<version>8.18</version>
</dependency>
<dependency>

View File

@ -20,7 +20,6 @@ import com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck;
import com.puppycrawl.tools.checkstyle.api.FileText;
import java.io.File;
import java.util.List;
import java.util.regex.Pattern;
public class NewlineCheck extends AbstractFileSetCheck {
@ -57,8 +56,8 @@ public class NewlineCheck extends AbstractFileSetCheck {
}
@Override
protected void processFiltered(File aFile, List<String> aLines) {
String text = FileText.fromLines(aFile, aLines).getFullText().toString();
protected void processFiltered(File file, FileText fileText) {
String text = fileText.getFullText().toString();
switch (NEWLINE_TYPE) {
case LF:

View File

@ -17,6 +17,7 @@ package io.netty.build.checkstyle;
import com.puppycrawl.tools.checkstyle.api.AuditEvent;
import com.puppycrawl.tools.checkstyle.api.AutomaticBean;
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
import com.puppycrawl.tools.checkstyle.api.Filter;
import java.util.regex.Pattern;
@ -58,4 +59,9 @@ public class SuppressionFilter extends AutomaticBean implements Filter {
}
return true;
}
@Override
protected void finishLocalSetup() {
// NOOP.
}
}