Merge "Clarify NativeHandle.java dup documentation." am: 5afc5894ad
am: 93483d3671
Change-Id: Ia34d72de62be27ebda2427f0d5a6e1b7edf25a6e
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user