On Thu, 17 Dec 2020 11:03:45 GMT, Сергей Цыпанов <github.com+10835776+stsypa...@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