Reformatted the code block as necessary

4.x.x
abhishekdesilva 6 years ago
parent 870ff031bb
commit a0bc1cdd20

@ -186,19 +186,19 @@ public class OperationManagerImpl implements OperationManager {
if (hasExistingTaskOperation) { if (hasExistingTaskOperation) {
pendingDeviceList.add(deviceId); pendingDeviceList.add(deviceId);
} }
} }
if(pendingDeviceList.size()>0){ if (pendingDeviceList.size() > 0) {
if (authorizedDeviceList.size() == pendingDeviceList.size()) { 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(); Activity activity = new Activity();
//Send the operation statuses only for admin triggered operations //Send the operation statuses only for admin triggered operations
String deviceType = validDeviceIds.get(0).getType(); String deviceType = validDeviceIds.get(0).getType();
activity.setActivityStatus(this.getActivityStatus(deviceValidationResult, deviceAuthorizationResult, activity.setActivityStatus(this.getActivityStatus(deviceValidationResult, deviceAuthorizationResult,
deviceType)); deviceType));
return activity; return activity;
}else{ } else {
authorizedDeviceList.removeAll(pendingDeviceList); authorizedDeviceList.removeAll(pendingDeviceList);
} }
} }

Loading…
Cancel
Save