RFR: 8017513: Support for closeable streams
Henry Jen
henry.jen at oracle.com
Wed Jul 10 14:30:09 PDT 2013
Hi,
Please review webrev at
http://cr.openjdk.java.net/~henryjen/ccc/8017513/0/webrev/index.html
This webrev improve resource release experience on Streams by
eliminating CloseableStream, instead, fold close capability into Stream.
A new interface, java.util.MayHoldCloseableResource, indicates an
implementation may or may not hold a resource need to be closed.
Annotation {@link HoldsResource} may be used to guide users/static
analysis tools that a MHCR instance that definitely hold a Closeable
resource.
Cheers,
Henry
More information about the lambda-dev
mailing list