Array equality, comparison and mismatch
Andrej Golovnin
andrej.golovnin at gmail.com
Mon Oct 12 07:47:12 UTC 2015
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)?
Best regards,
Andrej Golovnin
On Mon, Oct 12, 2015 at 9:31 AM, Paul Sandoz <paul.sandoz at oracle.com> wrote:
>
>> On 22 Sep 2015, at 18:30, Paul Sandoz <Paul.Sandoz at oracle.com> wrote:
>>
>> Hi,
>>
>> Please review the following which adds methods to Arrays for performing equality, comparison and mismatch:
>>
>> https://bugs.openjdk.java.net/browse/JDK-8033148
>> http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8033148-Arrays-lexico-compare/webrev/
>> http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8033148-Arrays-lexico-compare/specdiff/overview-summary.html
>>
>
> Updated the above with JavaDoc for all methods.
>
> Paul.
More information about the core-libs-dev
mailing list