Array equality, comparison and mismatch (original) (raw)

Paul Sandoz paul.sandoz at oracle.com
Mon Oct 12 08:14:55 UTC 2015


On 12 Oct 2015, at 09:47, Andrej Golovnin <andrej.golovnin at gmail.com> wrote:

Hi Paul, wouldn't it be better to use Objects#equals(Object, Object) in the line 3293 in the Arrays class instead of the ternary operator (the same applies to the line 3238)?

Thanks updated both the Arrays.equals and Arrays.mismatch methods (and also fixed a bug in the JavaDoc for the common prefix definition of those methods).

Paul.



More information about the core-libs-dev mailing list