I've read What is the difference between List.of and Arrays.asList?
What I'm not getting is why, after some dependency upgrades in my Maven pom.xml, suddenly all my
List.of(FLIGHT1_SPEND_AGG, FLIGHT1_IMPRESSIONS_AGG)
no longer compile. When I type List.
in IntelliJ, autocomplete only comes up with the class
member. I thought maybe I'm not importing java.util.List
? So explicitly specified it, but still:
I'm using Java 11, and I see the method exists here: https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/List.html.
Why can't I seem to use it? I must be doing something stupid...