RFR: JDK-8273154: Provide a JavadocTester method for non-overlapping, unordered output matching [v2]

Jonathan Gibbons jjg at openjdk.java.net
Wed Oct 20 17:13:07 UTC 2021


On Wed, 20 Oct 2021 00:01:46 GMT, Jonathan Gibbons <jjg at openjdk.org> 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


More information about the javadoc-dev mailing list