From a0bc1cdd20cc8def1eb2cafe5cd871babbd551a3 Mon Sep 17 00:00:00 2001 From: abhishekdesilva Date: Tue, 21 Aug 2018 09:53:23 +0530 Subject: [PATCH] Reformatted the code block as necessary --- .../mgt/core/operation/mgt/OperationManagerImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/OperationManagerImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/OperationManagerImpl.java index a3f06b59eb..8af419bc74 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/OperationManagerImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/OperationManagerImpl.java @@ -186,19 +186,19 @@ public class OperationManagerImpl implements OperationManager { if (hasExistingTaskOperation) { pendingDeviceList.add(deviceId); } - } - if(pendingDeviceList.size()>0){ + if (pendingDeviceList.size() > 0) { if (authorizedDeviceList.size() == pendingDeviceList.size()) { - log.info("All the devices contain a pending operation for the Operation Code: "+operationCode); + log.info("All the devices contain a pending operation for the Operation Code: " + + operationCode); Activity activity = new Activity(); //Send the operation statuses only for admin triggered operations String deviceType = validDeviceIds.get(0).getType(); activity.setActivityStatus(this.getActivityStatus(deviceValidationResult, deviceAuthorizationResult, deviceType)); return activity; - }else{ + } else { authorizedDeviceList.removeAll(pendingDeviceList); } }