Java 8: Generic type inference improvements

前端 未结 3 1404
夕颜
夕颜 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条回答
  •  闹比i
    闹比i (楼主)
    2021-02-15 00:04

    The example is accepted by every Eclipse release since the release of Java 8.

    (Releases greater or equal P20140317-1600).

提交回复
热议问题