迭代器及匿名内部类 和 List何时用new何时用null
1 for + Alt+/
List<Integer> pageIdList = new ArrayList<Integer>(); for (AppPage appPage : appPageResult.getAppPageList()) { pageIdList.add(appPage.getId()); } List<UserPlayFlowResult> friendIdList = null; if(!CollectionUtils.isEmpty(pageIdList)){ friendIdList = userPlayService.getFriendPlayByPageIds(userId, pageIdList, EXPIRED_DAYS); }