Loading core/java/android/os/FileObserver.java +4 −2 Original line number Original line Diff line number Diff line Loading @@ -16,6 +16,7 @@ package android.os; package android.os; import android.annotation.Nullable; import android.util.Log; import android.util.Log; import java.lang.ref.WeakReference; import java.lang.ref.WeakReference; Loading Loading @@ -204,7 +205,8 @@ public abstract class FileObserver { * * * @param event The type of event which happened * @param event The type of event which happened * @param path The path, relative to the main monitored file or directory, * @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); } } Loading
core/java/android/os/FileObserver.java +4 −2 Original line number Original line Diff line number Diff line Loading @@ -16,6 +16,7 @@ package android.os; package android.os; import android.annotation.Nullable; import android.util.Log; import android.util.Log; import java.lang.ref.WeakReference; import java.lang.ref.WeakReference; Loading Loading @@ -204,7 +205,8 @@ public abstract class FileObserver { * * * @param event The type of event which happened * @param event The type of event which happened * @param path The path, relative to the main monitored file or directory, * @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); } }