Java 8: Generic type inference improvements

前端 未结 3 1400
夕颜
夕颜 2021-02-14 23:40

With JEP 101: Generalized Target-Type Inference, this

final List bools = Arrays.asList(true,false, true);
final List string = boo         


        
3条回答
  •  有刺的猬
    2021-02-15 00:15

    It just works fine under IntelliJ Idea 13 which seems ahead of Eclipse for Java8 support. So I guess you just have to wait until Eclipse will be able to compile this.

提交回复
热议问题