Merge "Add comment that mWrapped ==> mClosed"

This commit is contained in:
TreeHugger Robot
2019-09-19 23:47:06 +00:00
committed by Android (Google) Code Review

View File

@@ -79,6 +79,7 @@ public class ParcelFileDescriptor implements Parcelable, Closeable {
/**
* Wrapped {@link ParcelFileDescriptor}, if any. Used to avoid
* double-closing {@link #mFd}.
* mClosed is always true if mWrapped is non-null.
*/
private final ParcelFileDescriptor mWrapped;
@@ -1023,6 +1024,7 @@ public class ParcelFileDescriptor implements Parcelable, Closeable {
}
try {
if (!mClosed) {
// mWrapped was and is null.
closeWithStatus(Status.LEAKED, null);
}
} finally {