On Tue, 2 Aug 2022 17:08:05 GMT, Brian Burkhalter <b...@openjdk.org> wrote:

>> For a `String` ā€œsā€, `s.indexOf(int)` can never return a value `>= 
>> s.length()` so change the check
>> 
>>         int pos = syntaxAndInput.indexOf(':');
>>         if (pos <= 0 || pos == syntaxAndInput.length())
>> 
>> to
>> 
>>         if (pos <= 0)
>
> Brian Burkhalter has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   8290047: Improve description of syntaxAndPattern

Marked as reviewed by rriggs (Reviewer).

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

PR: https://git.openjdk.org/jdk/pull/9595

Reply via email to