From 009f6004b57518746166ee302c88df3506b6f0c1 Mon Sep 17 00:00:00 2001 From: Alexander Milster Date: Tue, 29 Oct 2024 15:44:55 +0100 Subject: [PATCH] Spotless --- .../main/java/de/jplag/java/TokenGeneratingTreeScanner.java | 2 +- .../java/src/test/java/de/jplag/java/JavaLanguageTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 c1c306aa8..8bfbeb266 100644 --- a/languages/java/src/main/java/de/jplag/java/TokenGeneratingTreeScanner.java +++ b/languages/java/src/main/java/de/jplag/java/TokenGeneratingTreeScanner.java @@ -147,7 +147,7 @@ public Void visitClass(ClassTree node, Void unused) { } else if (node.getKind() == Tree.Kind.RECORD) { addToken(JavaTokenType.J_RECORD_BEGIN, start, 1, semantics); } else if (node.getKind() == Tree.Kind.ANNOTATION_TYPE) { - addToken(JavaTokenType.J_ANNO_T_BEGIN, start - 2 /*@ is final modifier for annotations*/, (start - 2) + 11 + nameLength, semantics); + addToken(JavaTokenType.J_ANNO_T_BEGIN, start - 2 /* @ is final modifier for annotations */, (start - 2) + 11 + nameLength, semantics); } else if (node.getKind() == Tree.Kind.CLASS) { addToken(JavaTokenType.J_CLASS_BEGIN, start, 5, semantics); } diff --git a/languages/java/src/test/java/de/jplag/java/JavaLanguageTest.java b/languages/java/src/test/java/de/jplag/java/JavaLanguageTest.java index 03a0cd06c..8e9320553 100644 --- a/languages/java/src/test/java/de/jplag/java/JavaLanguageTest.java +++ b/languages/java/src/test/java/de/jplag/java/JavaLanguageTest.java @@ -29,13 +29,13 @@ import static de.jplag.java.JavaTokenType.J_TRY_END; import static de.jplag.java.JavaTokenType.J_VARDEF; +import java.util.List; + import de.jplag.TokenType; import de.jplag.testutils.LanguageModuleTest; import de.jplag.testutils.datacollector.TestDataCollector; import de.jplag.testutils.datacollector.TestSourceIgnoredLinesCollector; -import java.util.List; - public class JavaLanguageTest extends LanguageModuleTest { public JavaLanguageTest() { super(new JavaLanguage(), JavaTokenType.class);