Merge "Add @Nullable and @NonNull to module API" am: 04ee825346 am: d785329abb
Change-Id: I89ff5004e3df1cde65390cbdb7119ebb47637091
This commit is contained in:
@@ -1 +1,11 @@
|
|||||||
// Signature format: 2.0
|
// Signature format: 2.0
|
||||||
|
package android.annotation {
|
||||||
|
|
||||||
|
@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @java.lang.annotation.Target({java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER, java.lang.annotation.ElementType.FIELD}) public @interface NonNull {
|
||||||
|
}
|
||||||
|
|
||||||
|
@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @java.lang.annotation.Target({java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER, java.lang.annotation.ElementType.FIELD}) public @interface Nullable {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,14 +15,16 @@
|
|||||||
*/
|
*/
|
||||||
package android.annotation;
|
package android.annotation;
|
||||||
|
|
||||||
import java.lang.annotation.Retention;
|
|
||||||
import java.lang.annotation.Target;
|
|
||||||
|
|
||||||
import static java.lang.annotation.ElementType.FIELD;
|
import static java.lang.annotation.ElementType.FIELD;
|
||||||
import static java.lang.annotation.ElementType.METHOD;
|
import static java.lang.annotation.ElementType.METHOD;
|
||||||
import static java.lang.annotation.ElementType.PARAMETER;
|
import static java.lang.annotation.ElementType.PARAMETER;
|
||||||
import static java.lang.annotation.RetentionPolicy.SOURCE;
|
import static java.lang.annotation.RetentionPolicy.SOURCE;
|
||||||
|
|
||||||
|
import android.annotation.SystemApi.Client;
|
||||||
|
|
||||||
|
import java.lang.annotation.Retention;
|
||||||
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Denotes that a parameter, field or method return value can never be null.
|
* Denotes that a parameter, field or method return value can never be null.
|
||||||
* <p>
|
* <p>
|
||||||
@@ -34,5 +36,6 @@ import static java.lang.annotation.RetentionPolicy.SOURCE;
|
|||||||
*/
|
*/
|
||||||
@Retention(SOURCE)
|
@Retention(SOURCE)
|
||||||
@Target({METHOD, PARAMETER, FIELD})
|
@Target({METHOD, PARAMETER, FIELD})
|
||||||
|
@SystemApi(client = Client.MODULE_LIBRARIES)
|
||||||
public @interface NonNull {
|
public @interface NonNull {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,14 +15,16 @@
|
|||||||
*/
|
*/
|
||||||
package android.annotation;
|
package android.annotation;
|
||||||
|
|
||||||
import java.lang.annotation.Retention;
|
|
||||||
import java.lang.annotation.Target;
|
|
||||||
|
|
||||||
import static java.lang.annotation.ElementType.FIELD;
|
import static java.lang.annotation.ElementType.FIELD;
|
||||||
import static java.lang.annotation.ElementType.METHOD;
|
import static java.lang.annotation.ElementType.METHOD;
|
||||||
import static java.lang.annotation.ElementType.PARAMETER;
|
import static java.lang.annotation.ElementType.PARAMETER;
|
||||||
import static java.lang.annotation.RetentionPolicy.SOURCE;
|
import static java.lang.annotation.RetentionPolicy.SOURCE;
|
||||||
|
|
||||||
|
import android.annotation.SystemApi.Client;
|
||||||
|
|
||||||
|
import java.lang.annotation.Retention;
|
||||||
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Denotes that a parameter, field or method return value can be null.
|
* Denotes that a parameter, field or method return value can be null.
|
||||||
* <p>
|
* <p>
|
||||||
@@ -41,5 +43,6 @@ import static java.lang.annotation.RetentionPolicy.SOURCE;
|
|||||||
*/
|
*/
|
||||||
@Retention(SOURCE)
|
@Retention(SOURCE)
|
||||||
@Target({METHOD, PARAMETER, FIELD})
|
@Target({METHOD, PARAMETER, FIELD})
|
||||||
|
@SystemApi(client = Client.MODULE_LIBRARIES)
|
||||||
public @interface Nullable {
|
public @interface Nullable {
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user