diff --git a/check_api/src/main/java/com/google/errorprone/util/ASTHelpers.java b/check_api/src/main/java/com/google/errorprone/util/ASTHelpers.java index c6f181f9223..a681f156778 100644 --- a/check_api/src/main/java/com/google/errorprone/util/ASTHelpers.java +++ b/check_api/src/main/java/com/google/errorprone/util/ASTHelpers.java @@ -1941,7 +1941,10 @@ private static ImmutableList extractTypes(@Nullable Type type) { } } - /** Returns the start position of the node. */ + /** + * Returns the start position of the node. To get the end position of a node, use {@link + * VisitorState#getEndPosition}. + */ public static int getStartPosition(Tree tree) { return ((JCTree) tree).getStartPosition(); }