RFR: 8247973: Javadoc incorrect for IdentityArrayList, IdentityLinkedList

Alexey Ivanov aivanov at openjdk.java.net
Mon Dec 6 17:10:14 UTC 2021


On Mon, 6 Dec 2021 16:57:23 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> The documentation for following methods used object equality mentioning 'equals()'. I have replaced the equals() with == operator where necessary with some formattings.
>> 
>> sun.awt.util.IdentityLinkedList#contains
>> sun.awt.util.IdentityArrayList#contains
>> sun.awt.util.IdentityArrayList#indexOf
>> sun.awt.util.IdentityArrayList#lastIndexOf
>> sun.awt.util.IdentityArrayList#remove(java.lang.Object) 
>> 
>> Kindly review the change.
>
> src/java.desktop/share/classes/sun/awt/util/IdentityLinkedList.java line 2:
> 
>> 1: /*
>> 2:  * Copyright (c) 2007, 2021 Oracle and/or its affiliates. All rights reserved.
> 
> Suggestion:
> 
>  * Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved.
> 
> There should be another comma.

Other than that, the changes look good.

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

PR: https://git.openjdk.java.net/jdk/pull/6710



More information about the client-libs-dev mailing list