Array equality, comparison and mismatch

Chris Hegarty chris.hegarty at oracle.com
Wed Oct 7 16:41:59 UTC 2015


On 7 Oct 2015, at 16:55, Paul Sandoz <paul.sandoz at oracle.com> wrote:

> 
>> On 6 Oct 2015, at 10:58, Chris Hegarty <chris.hegarty at oracle.com> wrote:
>>>> It was not immediately obvious to me that the common prefix can be 0. Should this be called out specifically?
>>>> 
>>> 
>>> When reading the documentation of compare or mismatch or both?
>> 
>> mismatch.  But maybe this is just me.
>> 
> 
> I could add something following the paragraph defining the common prefix:
> 
>  Note that a common prefix length of {@code 0} indicates that the first elements from each array mismatch.

Thanks, that makes it explicit.

-Chris.

> Paul.




More information about the core-libs-dev mailing list