From 3d6f6607000c79e2a14c8c23a8835cff92d224f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fournier?= Date: Wed, 9 Oct 2019 16:48:28 +0200 Subject: [PATCH] Checkstyle --- .../sourceforge/pmd/lang/java/ast/InternalApiBridge.java | 5 ----- .../sourceforge/pmd/lang/ecmascript/Ecmascript3Parser.java | 2 -- .../main/java/net/sourceforge/pmd/lang/jsp/JspParser.java | 2 -- .../java/net/sourceforge/pmd/lang/plsql/PLSQLParser.java | 2 -- .../java/net/sourceforge/pmd/lang/scala/ScalaParser.java | 7 ------- .../main/java/net/sourceforge/pmd/lang/vf/VfParser.java | 2 -- .../main/java/net/sourceforge/pmd/lang/vm/VmParser.java | 2 -- .../main/java/net/sourceforge/pmd/lang/xml/XmlParser.java | 2 -- 8 files changed, 24 deletions(-) diff --git a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/InternalApiBridge.java b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/InternalApiBridge.java index fc577d5382..13e467d2ac 100644 --- a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/InternalApiBridge.java +++ b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/InternalApiBridge.java @@ -5,7 +5,6 @@ package net.sourceforge.pmd.lang.java.ast; import java.io.Reader; -import java.util.Map; import net.sourceforge.pmd.annotation.InternalApi; import net.sourceforge.pmd.lang.ParserOptions; @@ -44,8 +43,4 @@ public final class InternalApiBridge { return acu; } - public static Map getSuppressMap(ASTCompilationUnit acu) { - return acu.getNoPmdComments(); - } - } diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/Ecmascript3Parser.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/Ecmascript3Parser.java index 401776f8a6..33e05b7e7e 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/Ecmascript3Parser.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/Ecmascript3Parser.java @@ -5,12 +5,10 @@ package net.sourceforge.pmd.lang.ecmascript; import java.io.Reader; -import java.util.Map; import net.sourceforge.pmd.lang.AbstractParser; import net.sourceforge.pmd.lang.ParserOptions; import net.sourceforge.pmd.lang.TokenManager; -import net.sourceforge.pmd.lang.ast.Node; import net.sourceforge.pmd.lang.ast.ParseException; import net.sourceforge.pmd.lang.ecmascript.ast.ASTAstRoot; import net.sourceforge.pmd.lang.ecmascript5.Ecmascript5TokenManager; diff --git a/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/JspParser.java b/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/JspParser.java index ae9d23a622..2906daa765 100644 --- a/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/JspParser.java +++ b/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/JspParser.java @@ -5,8 +5,6 @@ package net.sourceforge.pmd.lang.jsp; import java.io.Reader; -import java.util.HashMap; -import java.util.Map; import net.sourceforge.pmd.lang.AbstractParser; import net.sourceforge.pmd.lang.ParserOptions; diff --git a/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLParser.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLParser.java index 60cd673a3a..e865e27ba4 100644 --- a/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLParser.java +++ b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLParser.java @@ -7,8 +7,6 @@ package net.sourceforge.pmd.lang.plsql; import java.io.IOException; import java.io.Reader; import java.io.StringReader; -import java.util.HashMap; -import java.util.Map; import org.apache.commons.io.IOUtils; diff --git a/pmd-scala/src/main/java/net/sourceforge/pmd/lang/scala/ScalaParser.java b/pmd-scala/src/main/java/net/sourceforge/pmd/lang/scala/ScalaParser.java index 933f665718..afc3aa2176 100644 --- a/pmd-scala/src/main/java/net/sourceforge/pmd/lang/scala/ScalaParser.java +++ b/pmd-scala/src/main/java/net/sourceforge/pmd/lang/scala/ScalaParser.java @@ -6,8 +6,6 @@ package net.sourceforge.pmd.lang.scala; import java.io.IOException; import java.io.Reader; -import java.util.HashMap; -import java.util.Map; import org.apache.commons.io.IOUtils; @@ -56,11 +54,6 @@ public class ScalaParser extends AbstractParser { return (ASTSource) new ScalaTreeBuilder().build(src); } - @Override - public Map getSuppressMap() { - return new HashMap<>(); // FIXME; - } - @Override protected TokenManager createTokenManager(Reader source) { return null; diff --git a/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/VfParser.java b/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/VfParser.java index 69f39f2f40..9a3dd235ab 100644 --- a/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/VfParser.java +++ b/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/VfParser.java @@ -5,8 +5,6 @@ package net.sourceforge.pmd.lang.vf; import java.io.Reader; -import java.util.HashMap; -import java.util.Map; import net.sourceforge.pmd.lang.AbstractParser; import net.sourceforge.pmd.lang.ParserOptions; diff --git a/pmd-vm/src/main/java/net/sourceforge/pmd/lang/vm/VmParser.java b/pmd-vm/src/main/java/net/sourceforge/pmd/lang/vm/VmParser.java index ac94110f8b..812d924b86 100644 --- a/pmd-vm/src/main/java/net/sourceforge/pmd/lang/vm/VmParser.java +++ b/pmd-vm/src/main/java/net/sourceforge/pmd/lang/vm/VmParser.java @@ -5,8 +5,6 @@ package net.sourceforge.pmd.lang.vm; import java.io.Reader; -import java.util.HashMap; -import java.util.Map; import net.sourceforge.pmd.lang.AbstractParser; import net.sourceforge.pmd.lang.ParserOptions; diff --git a/pmd-xml/src/main/java/net/sourceforge/pmd/lang/xml/XmlParser.java b/pmd-xml/src/main/java/net/sourceforge/pmd/lang/xml/XmlParser.java index ad0045a3d3..94ddd56f30 100644 --- a/pmd-xml/src/main/java/net/sourceforge/pmd/lang/xml/XmlParser.java +++ b/pmd-xml/src/main/java/net/sourceforge/pmd/lang/xml/XmlParser.java @@ -5,8 +5,6 @@ package net.sourceforge.pmd.lang.xml; import java.io.Reader; -import java.util.HashMap; -import java.util.Map; import net.sourceforge.pmd.lang.AbstractParser; import net.sourceforge.pmd.lang.ParserOptions;