惯例
if(!ValueWidget.isNullOrEmpty(videoPath)){ if(!videoPath.startsWith("http://")){ String absulotePath=videoPath.replaceAll("^\\.", absulotePrefix); String videoSize=FileUtils.formatFileSize2(absulotePath,1,false); tVVideo.setBroadcastSize(videoSize); // File file=new File(absulotePath); if(!file.exists()){ list.remove(tVVideo); size=size-1; i=i-1; continue; } } }else{ list.remove(tVVideo); size=size-1; i=i-1; continue; }
if(!StringUtil.isNullOrEmpty(orgSubAppDetailInfo)){ int sizeOrgSubAppDetailInfo=orgSubAppDetailInfo.size(); for(int j=0;j<sizeOrgSubAppDetailInfo;j++){ //一个app OneAppDetailInfo oneAppDetailInfo =orgSubAppDetailInfo.get(j); if(!StringUtil.isNullOrEmpty(appId)&& !appId.equals(WorkbenchV2Service.changeAppIdToConfigValue(oneAppDetailInfo.getAppId()))){ orgSubAppDetailInfo.remove(oneAppDetailInfo); sizeOrgSubAppDetailInfo=sizeOrgSubAppDetailInfo-1; j=j-1; continue; } oneAppDetailInfo.deserialization(); } }