diff --git a/api/current.txt b/api/current.txt index 5642b152b9806..dcfa4b3db680f 100644 --- a/api/current.txt +++ b/api/current.txt @@ -2676,12 +2676,6 @@ package android.animation { package android.annotation { - public abstract class NonNull implements java.lang.annotation.Annotation { - } - - public abstract class Nullable implements java.lang.annotation.Annotation { - } - public abstract class SuppressLint implements java.lang.annotation.Annotation { } diff --git a/core/java/android/annotation/NonNull.java b/core/java/android/annotation/NonNull.java index 8e604f0a5967c..3ca9eea59ff31 100644 --- a/core/java/android/annotation/NonNull.java +++ b/core/java/android/annotation/NonNull.java @@ -27,6 +27,8 @@ import static java.lang.annotation.RetentionPolicy.SOURCE; * Denotes that a parameter, field or method return value can never be null. *
* This is a marker annotation and it has no specific attributes. + * + * @hide */ @Retention(SOURCE) @Target({METHOD, PARAMETER, FIELD}) diff --git a/core/java/android/annotation/Nullable.java b/core/java/android/annotation/Nullable.java index cdba2f6287bdf..43f42fa21f7f1 100644 --- a/core/java/android/annotation/Nullable.java +++ b/core/java/android/annotation/Nullable.java @@ -34,6 +34,8 @@ import static java.lang.annotation.RetentionPolicy.SOURCE; * null. *
* This is a marker annotation and it has no specific attributes. + * + * @hide */ @Retention(SOURCE) @Target({METHOD, PARAMETER, FIELD})