RFR: 8316493: Make immutable maps @ValueBased [v3]

Per Minborg pminborg at openjdk.org
Wed Oct 18 15:18:18 UTC 2023


On Fri, 22 Sep 2023 15:31:13 GMT, Chen Liang <liach at openjdk.org> wrote:

>> src/java.base/share/classes/java/util/AbstractMap.java line 524:
>> 
>>> 522:     protected Object clone() throws CloneNotSupportedException {
>>> 523:         AbstractMap<?,?> result = (AbstractMap<?,?>)super.clone();
>>> 524:         return result;
>> 
>> Suggestion:
>> 
>>         return super.clone();
>
> Since this base class has no more fields, this method should probably be removed and its spec change included as part of the CSR.

The method has been removed and the spec change has been incorporated into the CSR.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/15614#discussion_r1364068379


More information about the core-libs-dev mailing list