From 9ff522c0f5de8b3b35dfd674e5a067ee7ce8aa13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fournier?= Date: Fri, 20 Mar 2020 14:53:35 +0100 Subject: [PATCH] [plsql] Add token description --- .../net/sourceforge/pmd/lang/plsql/ast/PLSQLParser.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/PLSQLParser.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/PLSQLParser.java index 41cf6859fb..b5f890baed 100644 --- a/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/PLSQLParser.java +++ b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/PLSQLParser.java @@ -6,6 +6,8 @@ package net.sourceforge.pmd.lang.plsql.ast; import java.io.Reader; +import org.checkerframework.checker.nullness.qual.Nullable; + import net.sourceforge.pmd.lang.ParserOptions; import net.sourceforge.pmd.lang.TokenManager; import net.sourceforge.pmd.lang.ast.CharStream; @@ -27,7 +29,12 @@ public class PLSQLParser extends JjtreeParserAdapter { @Override protected JavaccTokenDocument newDocument(String fullText) { - return new JavaccTokenDocument(fullText); + return new JavaccTokenDocument(fullText) { + @Override + protected @Nullable String describeKindImpl(int kind) { + return PLSQLTokenKinds.describe(kind); + } + }; } @Override