(fs) Use try-with-resources to release NativeBuffer

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 20
    • Affects Version/s: None
    • Component/s: core-libs
    • b11

      Since JDK-8260966, sun.nio.fs.NativeBuffer implements AutoCloseable interface.
      Now we can use try-with-resources statements to simplify code.

            Assignee:
            Andrey Turbanov
            Reporter:
            Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: