From 548326d2e1754e335ecfa18049ce65449eea82e5 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 29 Feb 2020 17:58:45 +0100 Subject: [PATCH] [java] Make the new AST node classes final --- .../java/net/sourceforge/pmd/lang/java/ast/ASTRecordBody.java | 2 +- .../net/sourceforge/pmd/lang/java/ast/ASTRecordComponent.java | 2 +- .../sourceforge/pmd/lang/java/ast/ASTRecordComponentList.java | 2 +- .../pmd/lang/java/ast/ASTRecordConstructorDeclaration.java | 2 +- .../net/sourceforge/pmd/lang/java/ast/ASTRecordDeclaration.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTRecordBody.java b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTRecordBody.java index a066bfa2aaa..904b62e56b1 100644 --- a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTRecordBody.java +++ b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTRecordBody.java @@ -20,7 +20,7 @@ * */ @Experimental -public class ASTRecordBody extends AbstractJavaNode { +public final class ASTRecordBody extends AbstractJavaNode { ASTRecordBody(int id) { super(id); } diff --git a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTRecordComponent.java b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTRecordComponent.java index 390a8ab8df3..4c9943e2589 100644 --- a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTRecordComponent.java +++ b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTRecordComponent.java @@ -20,7 +20,7 @@ * */ @Experimental -public class ASTRecordComponent extends AbstractJavaNode { +public final class ASTRecordComponent extends AbstractJavaNode { private boolean varargs; ASTRecordComponent(int id) { diff --git a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTRecordComponentList.java b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTRecordComponentList.java index dbf7367601a..8139e687cb2 100644 --- a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTRecordComponentList.java +++ b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTRecordComponentList.java @@ -17,7 +17,7 @@ * */ @Experimental -public class ASTRecordComponentList extends AbstractJavaNode { +public final class ASTRecordComponentList extends AbstractJavaNode { ASTRecordComponentList(int id) { super(id); } diff --git a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTRecordConstructorDeclaration.java b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTRecordConstructorDeclaration.java index 9ab85f673b3..9d5fb279d51 100644 --- a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTRecordConstructorDeclaration.java +++ b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTRecordConstructorDeclaration.java @@ -23,7 +23,7 @@ * */ @Experimental -public class ASTRecordConstructorDeclaration extends AbstractJavaAccessNode implements ASTAnyTypeBodyDeclaration { +public final class ASTRecordConstructorDeclaration extends AbstractJavaAccessNode implements ASTAnyTypeBodyDeclaration { ASTRecordConstructorDeclaration(int id) { super(id); } diff --git a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTRecordDeclaration.java b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTRecordDeclaration.java index 6cc2355ef48..1d84939d8c9 100644 --- a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTRecordDeclaration.java +++ b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTRecordDeclaration.java @@ -28,7 +28,7 @@ * @see JEP 359: Records (Preview) */ @Experimental -public class ASTRecordDeclaration extends AbstractAnyTypeDeclaration { +public final class ASTRecordDeclaration extends AbstractAnyTypeDeclaration { ASTRecordDeclaration(int id) { super(id); }