From 01512447af3b86297a531ba9dff5c7b8e740befb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fournier?= Date: Tue, 28 Jul 2020 23:48:30 +0200 Subject: [PATCH] Deprecate framework in plsql --- .../net/sourceforge/pmd/lang/plsql/PLSQLDataFlowHandler.java | 4 ++++ .../net/sourceforge/pmd/lang/plsql/dfa/DataFlowFacade.java | 3 +++ .../net/sourceforge/pmd/lang/plsql/dfa/PLSQLDataFlowNode.java | 4 ++++ .../pmd/lang/plsql/dfa/StatementAndBraceFinder.java | 3 +++ .../sourceforge/pmd/lang/plsql/dfa/VariableAccessVisitor.java | 2 ++ 5 files changed, 16 insertions(+) diff --git a/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLDataFlowHandler.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLDataFlowHandler.java index 8f61ed7a51..9d8c451bc5 100644 --- a/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLDataFlowHandler.java +++ b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLDataFlowHandler.java @@ -12,6 +12,10 @@ import net.sourceforge.pmd.lang.dfa.DataFlowNode; import net.sourceforge.pmd.lang.plsql.ast.ASTLabelledStatement; import net.sourceforge.pmd.lang.plsql.dfa.PLSQLDataFlowNode; +/** + * @deprecated See {@link DataFlowNode} + */ +@Deprecated public class PLSQLDataFlowHandler implements DataFlowHandler { @Override public DataFlowNode createDataFlowNode(List dataFlow, Node node) { diff --git a/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/DataFlowFacade.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/DataFlowFacade.java index cec8d75ecd..58f515e099 100644 --- a/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/DataFlowFacade.java +++ b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/DataFlowFacade.java @@ -8,6 +8,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import net.sourceforge.pmd.lang.DataFlowHandler; +import net.sourceforge.pmd.lang.dfa.DataFlowNode; import net.sourceforge.pmd.lang.plsql.ast.ASTCompoundTriggerBlock; import net.sourceforge.pmd.lang.plsql.ast.ASTInput; import net.sourceforge.pmd.lang.plsql.ast.ASTMethodDeclaration; @@ -22,7 +23,9 @@ import net.sourceforge.pmd.lang.plsql.ast.PLSQLParserVisitorAdapter; * constructors. * * @author raik + * @deprecated See {@link DataFlowNode} */ +@Deprecated public class DataFlowFacade extends PLSQLParserVisitorAdapter { private static final String CLASS_PATH = DataFlowFacade.class.getCanonicalName(); private static final Logger LOGGER = Logger.getLogger(DataFlowFacade.class.getName()); diff --git a/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/PLSQLDataFlowNode.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/PLSQLDataFlowNode.java index b1c4db193d..989b2973aa 100644 --- a/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/PLSQLDataFlowNode.java +++ b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/PLSQLDataFlowNode.java @@ -13,6 +13,10 @@ import net.sourceforge.pmd.lang.plsql.ast.ASTProgramUnit; import net.sourceforge.pmd.lang.plsql.ast.ASTTriggerUnit; import net.sourceforge.pmd.lang.plsql.ast.ASTTypeMethod; +/** + * @deprecated See {@link DataFlowNode} + */ +@Deprecated public class PLSQLDataFlowNode extends AbstractDataFlowNode { public PLSQLDataFlowNode(List dataFlow, Node node) { diff --git a/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/StatementAndBraceFinder.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/StatementAndBraceFinder.java index 626bd85ac5..1a7daaffce 100644 --- a/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/StatementAndBraceFinder.java +++ b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/StatementAndBraceFinder.java @@ -10,6 +10,7 @@ import java.util.logging.Logger; import net.sourceforge.pmd.lang.DataFlowHandler; import net.sourceforge.pmd.lang.ast.Node; +import net.sourceforge.pmd.lang.dfa.DataFlowNode; import net.sourceforge.pmd.lang.dfa.Linker; import net.sourceforge.pmd.lang.dfa.LinkerException; import net.sourceforge.pmd.lang.dfa.NodeType; @@ -53,7 +54,9 @@ import net.sourceforge.pmd.lang.plsql.ast.PLSQLParserVisitorAdapter; * to link the nodes. * * @author raik + * @deprecated See {@link DataFlowNode} */ +@Deprecated public class StatementAndBraceFinder extends PLSQLParserVisitorAdapter { private static final Logger LOGGER = Logger.getLogger(StatementAndBraceFinder.class.getName()); diff --git a/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/VariableAccessVisitor.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/VariableAccessVisitor.java index 6c42815732..7a020537c5 100644 --- a/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/VariableAccessVisitor.java +++ b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/VariableAccessVisitor.java @@ -34,7 +34,9 @@ import net.sourceforge.pmd.lang.symboltable.NameOccurrence; * type of access of a variable. * * @author raik, Sven Jacob + * @deprecated See {@link DataFlowNode} */ +@Deprecated public class VariableAccessVisitor extends PLSQLParserVisitorAdapter { public void compute(ASTMethodDeclaration node) {