Merge "Clarify NativeHandle.java dup documentation."

This commit is contained in:
Steven Moreland
2018-08-14 17:47:58 +00:00
committed by Gerrit Code Review

View File

@@ -100,6 +100,9 @@ public final class NativeHandle implements Closeable {
/**
* Explicitly duplicate NativeHandle (this dups all file descritptors).
*
* If this method is called, this must also be explicitly closed with
* {@link #close()}.
*/
public NativeHandle dup() throws java.io.IOException {
FileDescriptor[] fds = new FileDescriptor[mFds.length];