We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e19b763 commit b53d614Copy full SHA for b53d614
core/src/main/java/com/google/googlejavaformat/java/JavaInput.java
@@ -562,7 +562,7 @@ private static boolean isParamComment(Tok tok) {
562
* @param offset the {@code 0}-based offset in characters
563
* @param length the length in characters
564
* @return the {@code 0}-based {@link Range} of tokens
565
- * @throws FormatterException
+ * @throws FormatterException if offset + length is outside the file
566
*/
567
Range<Integer> characterRangeToTokenRange(int offset, int length) throws FormatterException {
568
int requiredLength = offset + length;
0 commit comments