forked from phoedos/pmd
Update PMD to 6.18.0, remove unnecessary suppressions
This commit is contained in:
@ -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) {
|
||||
|
@ -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) {
|
||||
|
4
pom.xml
4
pom.xml
@ -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>
|
||||
|
Reference in New Issue
Block a user