Merge "Hide NonNull and Nullable."
diff --git a/api/current.txt b/api/current.txt
index fee5559..32a950c 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -2682,12 +2682,6 @@
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 @@
* 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 @@
* null.
* <p>
* This is a marker annotation and it has no specific attributes.
+ *
+ * @hide
*/
@Retention(SOURCE)
@Target({METHOD, PARAMETER, FIELD})