forked from phoedos/pmd
Merge branch 'text-utils-simple' into text-utils-javacc
This commit is contained in:
@ -8,7 +8,6 @@ import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
|
||||
import net.sourceforge.pmd.lang.ast.Node;
|
||||
import net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken;
|
||||
import net.sourceforge.pmd.lang.java.symbols.JClassSymbol;
|
||||
import net.sourceforge.pmd.lang.java.types.JClassType;
|
||||
import net.sourceforge.pmd.lang.rule.xpath.DeprecatedAttribute;
|
||||
|
@ -34,7 +34,7 @@ public final class UseTryWithResourcesRule extends AbstractJavaRulechainRule {
|
||||
|
||||
@Override
|
||||
public Object visit(ASTTryStatement node, Object data) {
|
||||
boolean isJava9OrLater = node.getAstInfo().getLanguageVersion().compareToVersion("9") >= 0;
|
||||
boolean isJava9OrLater = node.getLanguageVersion().compareToVersion("9") >= 0;
|
||||
|
||||
ASTFinallyClause finallyClause = node.getFinallyClause();
|
||||
if (finallyClause != null) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
+- Input[@CanonicalImage = null, @ExcludedLinesCount = "0", @ExcludedRangesCount = "0", @Sourcecode = "--\n-- See https://github.com/pmd/pmd/issues/3515\n--\n\nCREATE OR REPLACE PROCEDURE EXAMPLE_PROCEDURE IS\n --\n TYPE example_data_rt IS RECORD(\n field_one PLS_INTEGER,\n field_two PLS_INTEGER,\n field_three PLS_INTEGER);\n --\n TYPE example_data_aat IS TABLE OF example_data_rt INDEX BY BINARY_INTEGER;\n --\n l_example_data example_data_aat;\n --\nBEGIN\n --\n SELECT 1 field_value_one, 2 field_value_two, 3 field_value_three\n INTO l_example_data(1).field_one,l_example_data(1).field_two,l_example_data(1).field_three\n FROM DUAL;\n --\nEND EXAMPLE_PROCEDURE;\n"]
|
||||
+- Input[@CanonicalImage = null, @ExcludedLinesCount = "0", @ExcludedRangesCount = "0"]
|
||||
+- Global[@CanonicalImage = null]
|
||||
+- ProgramUnit[@CanonicalImage = null, @MethodName = "EXAMPLE_PROCEDURE", @Name = "EXAMPLE_PROCEDURE", @ObjectName = null]
|
||||
+- MethodDeclarator[@CanonicalImage = "EXAMPLE_PROCEDURE", @Image = "EXAMPLE_PROCEDURE", @ParameterCount = "1"]
|
||||
|
Reference in New Issue
Block a user