RFR: 8270836: Foolproof JavadocTester.checkOutput [v2]

Pavel Rappo prappo at openjdk.java.net
Fri Jul 16 14:50:53 UTC 2021


On Fri, 16 Jul 2021 14:36:25 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:

>> Pavel Rappo has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Improve the test
>
> test/langtools/jdk/javadoc/lib/javadoc/tester/JavadocTester.java line 579:
> 
>> 577:         return i == a.length();
>> 578:     }
>> 579: 
> 
> Why not `String.startsWith` ?

Good catch! I forgot that I need a qualitative answer not the quantitative (e.g. length of the common prefix).

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

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


More information about the javadoc-dev mailing list