summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/current.txt6
-rw-r--r--core/java/android/annotation/NonNull.java2
-rw-r--r--core/java/android/annotation/Nullable.java2
3 files changed, 4 insertions, 6 deletions
diff --git a/api/current.txt b/api/current.txt
index 5642b15..dcfa4b3 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 8e604f0..3ca9eea 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.
* <p>
* 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 cdba2f6..43f42fa 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.
* <p>
* This is a marker annotation and it has no specific attributes.
+ *
+ * @hide
*/
@Retention(SOURCE)
@Target({METHOD, PARAMETER, FIELD})