mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Improve runtime performance
This commit is contained in:
parent
230dbd1331
commit
2d23eb86eb
@ -44,7 +44,7 @@ public class APIPublisherUtil {
|
|||||||
private static List<HTTPMethod> httpMethods;
|
private static List<HTTPMethod> httpMethods;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
httpMethods = new ArrayList<HTTPMethod>();
|
httpMethods = new ArrayList<HTTPMethod>(5);
|
||||||
httpMethods.add(HTTPMethod.GET);
|
httpMethods.add(HTTPMethod.GET);
|
||||||
httpMethods.add(HTTPMethod.POST);
|
httpMethods.add(HTTPMethod.POST);
|
||||||
httpMethods.add(HTTPMethod.DELETE);
|
httpMethods.add(HTTPMethod.DELETE);
|
||||||
|
|||||||
@ -268,7 +268,7 @@ public class ApplicationManagerProviderServiceImpl implements ApplicationManagem
|
|||||||
log.debug("num of apps installed:" + installedAppList.size());
|
log.debug("num of apps installed:" + installedAppList.size());
|
||||||
}
|
}
|
||||||
List<Application> appsToAdd = new ArrayList<>();
|
List<Application> appsToAdd = new ArrayList<>();
|
||||||
List<Integer> appIdsToRemove = new ArrayList<>();
|
List<Integer> appIdsToRemove = new ArrayList<>(installedAppList.size());
|
||||||
|
|
||||||
for (Application installedApp : installedAppList) {
|
for (Application installedApp : installedAppList) {
|
||||||
if (!applications.contains(installedApp)) {
|
if (!applications.contains(installedApp)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user