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:58:04 UTC 2021


On Wed, 20 Oct 2021 00:09:10 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:

>> test/langtools/jdk/javadoc/lib/javadoc/tester/JavadocTester.java line 1063:
>> 
>>> 1061:          * Checks that there are no duplicate lines in the content.
>>> 1062:          */
>>> 1063:         public OutputChecker checkUnique() {
>> 
>> checkUnique seems to be neither used nor tested. As far as I can see, it was like that before this PR. Consider removing this method.
>
> I'll check when/why it was added.  It must have been added for a reason.

There is a test that uses one of the overloads of `checkUnique`.   

Since this is an API for tests now and to come, I'd prefer to leave the method in place for now.

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

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


More information about the javadoc-dev mailing list