From 07a75a0dbdc44a9751d98760454c3d7ba4686703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fournier?= Date: Mon, 20 Apr 2020 11:15:30 +0200 Subject: [PATCH] Make JS ast nodes final --- .../pmd/lang/ecmascript/ast/ASTArrayComprehension.java | 2 +- .../pmd/lang/ecmascript/ast/ASTArrayComprehensionLoop.java | 2 +- .../sourceforge/pmd/lang/ecmascript/ast/ASTArrayLiteral.java | 2 +- .../net/sourceforge/pmd/lang/ecmascript/ast/ASTAssignment.java | 2 +- .../net/sourceforge/pmd/lang/ecmascript/ast/ASTAstRoot.java | 2 +- .../java/net/sourceforge/pmd/lang/ecmascript/ast/ASTBlock.java | 2 +- .../sourceforge/pmd/lang/ecmascript/ast/ASTBreakStatement.java | 2 +- .../net/sourceforge/pmd/lang/ecmascript/ast/ASTCatchClause.java | 2 +- .../net/sourceforge/pmd/lang/ecmascript/ast/ASTComment.java | 2 +- .../pmd/lang/ecmascript/ast/ASTConditionalExpression.java | 2 +- .../pmd/lang/ecmascript/ast/ASTContinueStatement.java | 2 +- .../java/net/sourceforge/pmd/lang/ecmascript/ast/ASTDoLoop.java | 2 +- .../net/sourceforge/pmd/lang/ecmascript/ast/ASTElementGet.java | 2 +- .../sourceforge/pmd/lang/ecmascript/ast/ASTEmptyExpression.java | 2 +- .../sourceforge/pmd/lang/ecmascript/ast/ASTEmptyStatement.java | 2 +- .../pmd/lang/ecmascript/ast/ASTExpressionStatement.java | 2 +- .../net/sourceforge/pmd/lang/ecmascript/ast/ASTForInLoop.java | 2 +- .../net/sourceforge/pmd/lang/ecmascript/ast/ASTForLoop.java | 2 +- .../sourceforge/pmd/lang/ecmascript/ast/ASTFunctionCall.java | 2 +- .../sourceforge/pmd/lang/ecmascript/ast/ASTFunctionNode.java | 2 +- .../net/sourceforge/pmd/lang/ecmascript/ast/ASTIfStatement.java | 2 +- .../sourceforge/pmd/lang/ecmascript/ast/ASTKeywordLiteral.java | 2 +- .../java/net/sourceforge/pmd/lang/ecmascript/ast/ASTLabel.java | 2 +- .../pmd/lang/ecmascript/ast/ASTLabeledStatement.java | 2 +- .../net/sourceforge/pmd/lang/ecmascript/ast/ASTLetNode.java | 2 +- .../java/net/sourceforge/pmd/lang/ecmascript/ast/ASTName.java | 2 +- .../sourceforge/pmd/lang/ecmascript/ast/ASTNewExpression.java | 2 +- .../sourceforge/pmd/lang/ecmascript/ast/ASTNumberLiteral.java | 2 +- .../sourceforge/pmd/lang/ecmascript/ast/ASTObjectLiteral.java | 2 +- .../sourceforge/pmd/lang/ecmascript/ast/ASTObjectProperty.java | 2 +- .../pmd/lang/ecmascript/ast/ASTParenthesizedExpression.java | 2 +- .../net/sourceforge/pmd/lang/ecmascript/ast/ASTPropertyGet.java | 2 +- .../sourceforge/pmd/lang/ecmascript/ast/ASTRegExpLiteral.java | 2 +- .../sourceforge/pmd/lang/ecmascript/ast/ASTReturnStatement.java | 2 +- .../java/net/sourceforge/pmd/lang/ecmascript/ast/ASTScope.java | 2 +- .../sourceforge/pmd/lang/ecmascript/ast/ASTStringLiteral.java | 2 +- .../net/sourceforge/pmd/lang/ecmascript/ast/ASTSwitchCase.java | 2 +- .../sourceforge/pmd/lang/ecmascript/ast/ASTSwitchStatement.java | 2 +- .../sourceforge/pmd/lang/ecmascript/ast/ASTThrowStatement.java | 2 +- .../sourceforge/pmd/lang/ecmascript/ast/ASTTryStatement.java | 2 +- .../sourceforge/pmd/lang/ecmascript/ast/ASTUnaryExpression.java | 2 +- .../pmd/lang/ecmascript/ast/ASTVariableDeclaration.java | 2 +- .../pmd/lang/ecmascript/ast/ASTVariableInitializer.java | 2 +- .../net/sourceforge/pmd/lang/ecmascript/ast/ASTWhileLoop.java | 2 +- .../sourceforge/pmd/lang/ecmascript/ast/ASTWithStatement.java | 2 +- .../net/sourceforge/pmd/lang/ecmascript/ast/ASTXmlDotQuery.java | 2 +- .../sourceforge/pmd/lang/ecmascript/ast/ASTXmlExpression.java | 2 +- .../sourceforge/pmd/lang/ecmascript/ast/ASTXmlMemberGet.java | 2 +- .../net/sourceforge/pmd/lang/ecmascript/ast/ASTXmlString.java | 2 +- 49 files changed, 49 insertions(+), 49 deletions(-) diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTArrayComprehension.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTArrayComprehension.java index 83ef429183..660fdc1547 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTArrayComprehension.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTArrayComprehension.java @@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast; import org.mozilla.javascript.ast.ArrayComprehension; -public class ASTArrayComprehension extends AbstractEcmascriptNode { +public final class ASTArrayComprehension extends AbstractEcmascriptNode { ASTArrayComprehension(ArrayComprehension arrayComprehension) { super(arrayComprehension); } diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTArrayComprehensionLoop.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTArrayComprehensionLoop.java index 81d9b6fc14..d2705db202 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTArrayComprehensionLoop.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTArrayComprehensionLoop.java @@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast; import org.mozilla.javascript.ast.ArrayComprehensionLoop; -public class ASTArrayComprehensionLoop extends AbstractEcmascriptNode { +public final class ASTArrayComprehensionLoop extends AbstractEcmascriptNode { ASTArrayComprehensionLoop(ArrayComprehensionLoop arrayComprehensionLoop) { super(arrayComprehensionLoop); } diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTArrayLiteral.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTArrayLiteral.java index 46c4847176..a3fea1f8e3 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTArrayLiteral.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTArrayLiteral.java @@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast; import org.mozilla.javascript.ast.ArrayLiteral; -public class ASTArrayLiteral extends AbstractEcmascriptNode +public final class ASTArrayLiteral extends AbstractEcmascriptNode implements DestructuringNode, TrailingCommaNode { private boolean trailingComma; diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTAssignment.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTAssignment.java index 1247ca2c34..1ca45f45ce 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTAssignment.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTAssignment.java @@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast; import org.mozilla.javascript.ast.Assignment; -public class ASTAssignment extends AbstractInfixEcmascriptNode { +public final class ASTAssignment extends AbstractInfixEcmascriptNode { ASTAssignment(Assignment asssignment) { super(asssignment); } diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTAstRoot.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTAstRoot.java index 27fdeb5460..ca2afd9f03 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTAstRoot.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTAstRoot.java @@ -11,7 +11,7 @@ import org.mozilla.javascript.ast.AstRoot; import net.sourceforge.pmd.lang.ast.RootNode; -public class ASTAstRoot extends AbstractEcmascriptNode implements RootNode { +public final class ASTAstRoot extends AbstractEcmascriptNode implements RootNode { private Map noPmdComments = Collections.emptyMap(); diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTBlock.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTBlock.java index 774414de84..42f084523b 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTBlock.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTBlock.java @@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast; import org.mozilla.javascript.ast.Block; -public class ASTBlock extends AbstractEcmascriptNode { +public final class ASTBlock extends AbstractEcmascriptNode { ASTBlock(Block block) { super(block); } diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTBreakStatement.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTBreakStatement.java index d232c1aada..babe207902 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTBreakStatement.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTBreakStatement.java @@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast; import org.mozilla.javascript.ast.BreakStatement; -public class ASTBreakStatement extends AbstractEcmascriptNode { +public final class ASTBreakStatement extends AbstractEcmascriptNode { ASTBreakStatement(BreakStatement breakStatement) { super(breakStatement); super.setImage(breakStatement.getBreakLabel() != null ? breakStatement.getBreakLabel().getIdentifier() : null); diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTCatchClause.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTCatchClause.java index 795ed7fcff..9407d1e77c 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTCatchClause.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTCatchClause.java @@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast; import org.mozilla.javascript.ast.CatchClause; -public class ASTCatchClause extends AbstractEcmascriptNode { +public final class ASTCatchClause extends AbstractEcmascriptNode { ASTCatchClause(CatchClause catchClause) { super(catchClause); } diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTComment.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTComment.java index d6973334aa..62900dd699 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTComment.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTComment.java @@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast; import org.mozilla.javascript.ast.Comment; -public class ASTComment extends AbstractEcmascriptNode { +public final class ASTComment extends AbstractEcmascriptNode { ASTComment(Comment comment) { super(comment); } diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTConditionalExpression.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTConditionalExpression.java index 91331e3b27..7fa0d3e449 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTConditionalExpression.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTConditionalExpression.java @@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast; import org.mozilla.javascript.ast.ConditionalExpression; -public class ASTConditionalExpression extends AbstractEcmascriptNode { +public final class ASTConditionalExpression extends AbstractEcmascriptNode { ASTConditionalExpression(ConditionalExpression conditionalExpression) { super(conditionalExpression); } diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTContinueStatement.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTContinueStatement.java index a694ec3e41..c47501ef7a 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTContinueStatement.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTContinueStatement.java @@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast; import org.mozilla.javascript.ast.ContinueStatement; -public class ASTContinueStatement extends AbstractEcmascriptNode { +public final class ASTContinueStatement extends AbstractEcmascriptNode { ASTContinueStatement(ContinueStatement continueStatement) { super(continueStatement); super.setImage(continueStatement.getLabel() != null ? continueStatement.getLabel().getIdentifier() : null); diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTDoLoop.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTDoLoop.java index bfff74e7e7..6d579b5069 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTDoLoop.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTDoLoop.java @@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast; import org.mozilla.javascript.ast.DoLoop; -public class ASTDoLoop extends AbstractEcmascriptNode { +public final class ASTDoLoop extends AbstractEcmascriptNode { ASTDoLoop(DoLoop doLoop) { super(doLoop); } diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTElementGet.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTElementGet.java index 55945c1e5b..f689d2079c 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTElementGet.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTElementGet.java @@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast; import org.mozilla.javascript.ast.ElementGet; -public class ASTElementGet extends AbstractEcmascriptNode { +public final class ASTElementGet extends AbstractEcmascriptNode { ASTElementGet(ElementGet elementGet) { super(elementGet); } diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTEmptyExpression.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTEmptyExpression.java index dab47ac69a..ad0d48abd0 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTEmptyExpression.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTEmptyExpression.java @@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast; import org.mozilla.javascript.ast.EmptyExpression; -public class ASTEmptyExpression extends AbstractEcmascriptNode { +public final class ASTEmptyExpression extends AbstractEcmascriptNode { ASTEmptyExpression(EmptyExpression emptyExpression) { super(emptyExpression); } diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTEmptyStatement.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTEmptyStatement.java index 79e4d9f2f1..5e5a1abcce 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTEmptyStatement.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTEmptyStatement.java @@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast; import org.mozilla.javascript.ast.EmptyStatement; -public class ASTEmptyStatement extends AbstractEcmascriptNode { +public final class ASTEmptyStatement extends AbstractEcmascriptNode { ASTEmptyStatement(EmptyStatement emptyStatement) { super(emptyStatement); } diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTExpressionStatement.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTExpressionStatement.java index cb39d88487..9780b27117 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTExpressionStatement.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTExpressionStatement.java @@ -7,7 +7,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast; import org.mozilla.javascript.Token; import org.mozilla.javascript.ast.ExpressionStatement; -public class ASTExpressionStatement extends AbstractEcmascriptNode { +public final class ASTExpressionStatement extends AbstractEcmascriptNode { ASTExpressionStatement(ExpressionStatement expressionStatement) { super(expressionStatement); } diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTForInLoop.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTForInLoop.java index c641deb5f0..a25c13738d 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTForInLoop.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTForInLoop.java @@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast; import org.mozilla.javascript.ast.ForInLoop; -public class ASTForInLoop extends AbstractEcmascriptNode { +public final class ASTForInLoop extends AbstractEcmascriptNode { ASTForInLoop(ForInLoop forInLoop) { super(forInLoop); } diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTForLoop.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTForLoop.java index 3d1aaf706c..746435a92e 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTForLoop.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTForLoop.java @@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast; import org.mozilla.javascript.ast.ForLoop; -public class ASTForLoop extends AbstractEcmascriptNode { +public final class ASTForLoop extends AbstractEcmascriptNode { ASTForLoop(ForLoop forLoop) { super(forLoop); } diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTFunctionCall.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTFunctionCall.java index 733851dbbd..10d7404adf 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTFunctionCall.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTFunctionCall.java @@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast; import org.mozilla.javascript.ast.FunctionCall; -public class ASTFunctionCall extends AbstractEcmascriptNode { +public final class ASTFunctionCall extends AbstractEcmascriptNode { ASTFunctionCall(FunctionCall functionCall) { super(functionCall); } diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTFunctionNode.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTFunctionNode.java index 97d9c03803..bc4d94055b 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTFunctionNode.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTFunctionNode.java @@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast; import org.mozilla.javascript.ast.FunctionNode; -public class ASTFunctionNode extends AbstractEcmascriptNode { +public final class ASTFunctionNode extends AbstractEcmascriptNode { ASTFunctionNode(FunctionNode functionNode) { super(functionNode); super.setImage(functionNode.getName()); diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTIfStatement.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTIfStatement.java index dda9ab54dd..8b407db87c 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTIfStatement.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTIfStatement.java @@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast; import org.mozilla.javascript.ast.IfStatement; -public class ASTIfStatement extends AbstractEcmascriptNode { +public final class ASTIfStatement extends AbstractEcmascriptNode { ASTIfStatement(IfStatement ifStatement) { super(ifStatement); } diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTKeywordLiteral.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTKeywordLiteral.java index eb36ee9fab..8d52211df1 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTKeywordLiteral.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTKeywordLiteral.java @@ -9,7 +9,7 @@ import java.util.Locale; import org.mozilla.javascript.Token; import org.mozilla.javascript.ast.KeywordLiteral; -public class ASTKeywordLiteral extends AbstractEcmascriptNode { +public final class ASTKeywordLiteral extends AbstractEcmascriptNode { ASTKeywordLiteral(KeywordLiteral keywordLiteral) { super(keywordLiteral); super.setImage(Token.typeToName(keywordLiteral.getType()).toLowerCase(Locale.ROOT)); diff --git a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTLabel.java b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTLabel.java index f137353b4b..4c1b2bf161 100644 --- a/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTLabel.java +++ b/pmd-javascript/src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/ASTLabel.java @@ -6,7 +6,7 @@ package net.sourceforge.pmd.lang.ecmascript.ast; import org.mozilla.javascript.ast.Label; -public class ASTLabel extends AbstractEcmascriptNode