Merge "Add NonNull annotation to getAllSubscriptionInfoList" am: e5e2388844 am: b655259440
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1485142 Change-Id: Ic1e07d28a41eea2ce59cc21702dae95d61adc24e
This commit is contained in:
@@ -1365,6 +1365,7 @@ public class SubscriptionManager {
|
||||
* include those that were inserted before, maybe empty but not null.
|
||||
* @hide
|
||||
*/
|
||||
@NonNull
|
||||
@UnsupportedAppUsage
|
||||
public List<SubscriptionInfo> getAllSubscriptionInfoList() {
|
||||
if (VDBG) logd("[getAllSubscriptionInfoList]+");
|
||||
@@ -1382,7 +1383,7 @@ public class SubscriptionManager {
|
||||
}
|
||||
|
||||
if (result == null) {
|
||||
result = new ArrayList<>();
|
||||
result = Collections.emptyList();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user