This commit is contained in:
hasuniea 2015-12-21 20:21:37 +05:30
commit 30a98a39dc
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ public class APIPublisherUtil {
private static List<HTTPMethod> httpMethods;
static {
httpMethods = new ArrayList<HTTPMethod>();
httpMethods = new ArrayList<HTTPMethod>(5);
httpMethods.add(HTTPMethod.GET);
httpMethods.add(HTTPMethod.POST);
httpMethods.add(HTTPMethod.DELETE);

View File

@ -268,7 +268,7 @@ public class ApplicationManagerProviderServiceImpl implements ApplicationManagem
log.debug("num of apps installed:" + installedAppList.size());
}
List<Application> appsToAdd = new ArrayList<>();
List<Integer> appIdsToRemove = new ArrayList<>();
List<Integer> appIdsToRemove = new ArrayList<>(installedAppList.size());
for (Application installedApp : installedAppList) {
if (!applications.contains(installedApp)) {