Merge "Add @NonNull in SubMgr#getOpportunisticSubscriptions return value."

This commit is contained in:
Xiangyu/Malcolm Chen
2018-10-26 01:30:21 +00:00
committed by Gerrit Code Review

View File

@@ -2233,9 +2233,10 @@ public class SubscriptionManager {
* Provide all available user downloaded profiles on phone which are used only for
* opportunistic data.
* @param slotIndex slot on which the profiles are queried from.
* @return the list of opportunistic subscription info. If none exists, an empty list.
*/
@RequiresPermission(android.Manifest.permission.READ_PHONE_STATE)
public List<SubscriptionInfo> getOpportunisticSubscriptions(int slotIndex) {
public @NonNull List<SubscriptionInfo> getOpportunisticSubscriptions(int slotIndex) {
String pkgForDebug = mContext != null ? mContext.getOpPackageName() : "<unknown>";
List<SubscriptionInfo> subInfoList = null;