Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a341d706 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by android-build-merger
Browse files

DO NOT MERGE. Clarify FileObserver docs for null value.

am: c041f5a3

Change-Id: I3c0f0098eed321419c8d0e2a1a66c2bf380df8d1
parents 2ebbd82c c041f5a3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package android.os;

import android.annotation.Nullable;
import android.util.Log;

import java.lang.ref.WeakReference;
@@ -204,7 +205,8 @@ public abstract class FileObserver {
     *
     * @param event The type of event which happened
     * @param path The path, relative to the main monitored file or directory,
     *     of the file or directory which triggered the event
     *     of the file or directory which triggered the event.  This value can
     *     be {@code null} for certain events, such as {@link #MOVE_SELF}.
     */
    public abstract void onEvent(int event, String path);
    public abstract void onEvent(int event, @Nullable String path);
}