On Wed, 20 Oct 2021 00:01:46 GMT, Jonathan Gibbons <[email protected]> wrote:

>> test/langtools/jdk/javadoc/lib/javadoc/tester/JavadocTester.java line 938:
>> 
>>> 936:                 return new Range(start, end);
>>> 937:             }
>>> 938:             boolean overlaps(Range other) {
>> 
>> The `overlaps` method seems unused.
>
> That sounds surprising; I'll check.

I guess it is unused for now, but I'd prefer to leave it in for now.
Being able toi detect overlapping occurrences of search results is an important 
part of the new checker, and so it seems worth having a method on `Range` to 
detect overlaps.

-------------

PR: https://git.openjdk.java.net/jdk/pull/5743

Reply via email to