RFR: 8301604: Replace Collections.unmodifiableList with List.of

Nir Lisker nlisker at openjdk.org
Wed Feb 1 23:01:37 UTC 2023


On Wed, 1 Feb 2023 15:11:57 GMT, Glavo <duke at openjdk.org> wrote:

> I have considered this, but I didn't make this change because I was worried that there would be less descriptive information when null was encountered.

I think it's fine. The method is documented to throw and it happens immediately on entry. NPEs don't always have a message since they are straightforward.

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

PR: https://git.openjdk.org/jfx/pull/1012


More information about the openjfx-dev mailing list