Update PMD to 6.18.0, remove unnecessary suppressions

This commit is contained in:
Andreas Dangel
2019-09-16 20:42:01 +02:00
parent 395e3453cb
commit 8d08016a94
3 changed files with 2 additions and 4 deletions

View File

@ -133,7 +133,6 @@ public class CPDTask extends Task {
CPDRenderer renderer = createRenderer();
try {
@SuppressWarnings("PMD.CloseResource")
// will be closed via BufferedWriter/OutputStreamWriter chain down below
final OutputStream os;
if (outputFile == null) {

View File

@ -155,7 +155,6 @@ public class AbstractVmNode extends AbstractNode implements VmNode {
*/
@Deprecated
public void dump(final String prefix, final boolean recurse, final Writer writer) {
@SuppressWarnings("PMD.CloseResource")
final PrintWriter printWriter = writer instanceof PrintWriter ? (PrintWriter) writer : new PrintWriter(writer);
printWriter.println(toString(prefix));
if (children != null && recurse) {

View File

@ -361,12 +361,12 @@ Objective-C, Perl, PHP, PLSQL, Python, Ruby, Salesforce.com Apex, Scala, Swift a
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-core</artifactId>
<version>6.17.0</version>
<version>6.18.0</version>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-java</artifactId>
<version>6.17.0</version>
<version>6.18.0</version>
</dependency>
<!-- This contains the dogfood ruleset -->
<dependency>