Array equality, comparison and mismatch

Paul Sandoz paul.sandoz at oracle.com
Wed Oct 7 15:55:27 UTC 2015


> 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.

Paul.



More information about the core-libs-dev mailing list