diff options
| author | 2018-08-14 15:03:47 -0700 | |
|---|---|---|
| committer | 2018-08-14 15:03:47 -0700 | |
| commit | b8e33ec740aba987f08c9bd7dd6dd4c7846c06b9 (patch) | |
| tree | f6b08960d9908402bcf7be3a2894cccc28cb9142 | |
| parent | 8d9b51f9ad68e946fab77bddfecaa56d09ae40b4 (diff) | |
| parent | e4086dfff6ac7c1d5dfffb2bba7b7932a50ab4dd (diff) | |
Merge "Clarify NativeHandle.java dup documentation." am: 5afc5894ad am: 93483d3671
am: e4086dfff6
Change-Id: Ib68770ddb7ed4750e648c258409efedc0b62ad7d
| -rw-r--r-- | core/java/android/os/NativeHandle.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/os/NativeHandle.java b/core/java/android/os/NativeHandle.java index f3dc5c8bc309..fbecc8ec1cd9 100644 --- a/core/java/android/os/NativeHandle.java +++ b/core/java/android/os/NativeHandle.java @@ -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]; |