summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2019-02-28 22:35:48 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2019-02-28 22:35:48 +0000
commit68d8e946eed760e8d97146a696e1d6d2a915530d (patch)
tree2ce39692fe1c8667e2cb68ad9a8e06ee655d794d
parent65c6cd861860a719f1225730d0e3d57a531e6f1c (diff)
parentda79fb60182abd08875d9bd49fbe53550d3ad745 (diff)
Merge "Add nullability annotations."
-rw-r--r--api/current.txt2
-rw-r--r--core/java/android/service/carrier/CarrierMessagingClientService.java5
2 files changed, 5 insertions, 2 deletions
diff --git a/api/current.txt b/api/current.txt
index 968811d85d31..b9cd0bdff826 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -41397,7 +41397,7 @@ package android.service.carrier {
public class CarrierMessagingClientService extends android.app.Service {
ctor public CarrierMessagingClientService();
- method public final android.os.IBinder onBind(android.content.Intent);
+ method @NonNull public final android.os.IBinder onBind(@Nullable android.content.Intent);
}
public abstract class CarrierMessagingService extends android.app.Service {
diff --git a/core/java/android/service/carrier/CarrierMessagingClientService.java b/core/java/android/service/carrier/CarrierMessagingClientService.java
index 13f4fc4b0dcb..767c1d1a49c6 100644
--- a/core/java/android/service/carrier/CarrierMessagingClientService.java
+++ b/core/java/android/service/carrier/CarrierMessagingClientService.java
@@ -15,6 +15,8 @@
*/
package android.service.carrier;
+import android.annotation.NonNull;
+import android.annotation.Nullable;
import android.app.Service;
import android.content.ComponentName;
import android.content.Intent;
@@ -71,7 +73,8 @@ public class CarrierMessagingClientService extends Service {
}
@Override
- public final IBinder onBind(Intent intent) {
+ @NonNull
+ public final IBinder onBind(@Nullable Intent intent) {
return mImpl.asBinder();
}