From 93e9a71ee413b04da64492440d63d985c3a5437e Mon Sep 17 00:00:00 2001 From: Alexander Milster Date: Tue, 21 Nov 2023 09:40:41 +0100 Subject: [PATCH] Fixed wrong token type. --- .../src/main/java/de/jplag/java/TokenGeneratingTreeScanner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages/java/src/main/java/de/jplag/java/TokenGeneratingTreeScanner.java b/languages/java/src/main/java/de/jplag/java/TokenGeneratingTreeScanner.java index 479965a49..f94eb2837 100644 --- a/languages/java/src/main/java/de/jplag/java/TokenGeneratingTreeScanner.java +++ b/languages/java/src/main/java/de/jplag/java/TokenGeneratingTreeScanner.java @@ -295,7 +295,7 @@ public Void visitCase(CaseTree node, Void unused) { } if (node.getGuard() != null) { - addToken(JavaTokenType.J_IF_BEGIN, positions.getEndPosition(ast, node), 0, CodeSemantics.createControl()); + addToken(JavaTokenType.J_IF_END, positions.getEndPosition(ast, node), 0, CodeSemantics.createControl()); } return null;