diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/util/SourceCode.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/util/SourceCode.java index 065d023efbc..ab400831988 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/util/SourceCode.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/util/SourceCode.java @@ -12,7 +12,6 @@ * A collection of Error Prone utility methods for dealing with the source code representation of * AST nodes. */ -// XXX: Can we locate this code in a better place? Maybe contribute it upstream? public final class SourceCode { /** The complement of {@link CharMatcher#whitespace()}. */ private static final CharMatcher NON_WHITESPACE_MATCHER = CharMatcher.whitespace().negate(); diff --git a/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/util/SourceCodeTest.java b/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/util/SourceCodeTest.java index 54aed84e131..56668a15062 100644 --- a/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/util/SourceCodeTest.java +++ b/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/util/SourceCodeTest.java @@ -167,8 +167,9 @@ void deleteWithTrailingWhitespaceMethods() { } /** - * Uses {@link SourceCode#deleteWithTrailingWhitespace(Tree, VisitorState)} to suggest the - * deletion of annotations and methods with a name containing {@value DELETION_MARKER}. + * A {@link BugChecker} that uses {@link SourceCode#deleteWithTrailingWhitespace(Tree, + * VisitorState)} to suggest the deletion of annotations and methods with a name containing + * {@value DELETION_MARKER}. */ @BugPattern(severity = ERROR, summary = "Interacts with `SourceCode` for testing purposes") public static final class TestChecker extends BugChecker