RFR: 8193031: Collections.addAll is likely to perform worse than Collection.addAll [v2]
Rémi Forax
github.com+828220+forax at openjdk.java.net
Thu Dec 17 11:10:57 UTC 2020
On Thu, 17 Dec 2020 11:03:45 GMT, Сергей Цыпанов <github.com+10835776+stsypanov at openjdk.org> wrote:
>> ok, it means there is a bug in the compiler, the analysis done for unsafe varargs (with -Xlint:varargs) doesn't check that the called method (here Arrays.asList()) is tagged with @SafeVarargs.
>
> Should I then wait for the fix of that bug to remove `@SupressWarnings`?
I don't think so, the code is fine, for me.
-------------
PR: https://git.openjdk.java.net/jdk/pull/1764
More information about the core-libs-dev
mailing list