Merge "Add NonNull annotation to getAllSubscriptionInfoList"
This commit is contained in:
@@ -1365,6 +1365,7 @@ public class SubscriptionManager {
|
|||||||
* include those that were inserted before, maybe empty but not null.
|
* include those that were inserted before, maybe empty but not null.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
|
@NonNull
|
||||||
@UnsupportedAppUsage
|
@UnsupportedAppUsage
|
||||||
public List<SubscriptionInfo> getAllSubscriptionInfoList() {
|
public List<SubscriptionInfo> getAllSubscriptionInfoList() {
|
||||||
if (VDBG) logd("[getAllSubscriptionInfoList]+");
|
if (VDBG) logd("[getAllSubscriptionInfoList]+");
|
||||||
@@ -1382,7 +1383,7 @@ public class SubscriptionManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (result == null) {
|
if (result == null) {
|
||||||
result = new ArrayList<>();
|
result = Collections.emptyList();
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user