summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2018-08-14 13:29:04 -0700
committer android-build-merger <android-build-merger@google.com> 2018-08-14 13:29:04 -0700
commit93483d3671a409f9ee219a93cece302bfec81be0 (patch)
tree4c5633842436f20786dcfaa1ed1dd929937714fc
parent6580802918e670d37f0b9262b13d46fd36101758 (diff)
parent5afc5894ad0effd32921f8f96c0b218f0a60c939 (diff)
Merge "Clarify NativeHandle.java dup documentation."
am: 5afc5894ad Change-Id: Ie0d193dc92ecbc8b5faa2d108cce845a938a5205
-rw-r--r--core/java/android/os/NativeHandle.java3
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];