RFR JDK-8066577: Cleanup and make better use of the stream API in the jrtfs code
Claes Redestad
claes.redestad at oracle.com
Mon Aug 29 19:04:22 UTC 2016
Hi,
On 2016-08-29 21:01, Tagir Valeev wrote:
> Hello!
>
>> (2) to use Collections.singleton() as Claes suggested. It appears the
> "singleton set" is
>> better choice (light) in this case.
>
> Btw why not new-and-cool Set.of() ?
> http://download.java.net/java/jdk9/docs/api/java/util/Set.html#of-E-
this is a bit subtle, but there's a special restriction on the jrtfs
code to only use 8-compatible APIs to be able to produce the jrt-fs.jar
that can be used on JDK 8 to interact with Java 9 runtime images.
Thanks!
/Claes
More information about the core-libs-dev
mailing list