code improvements

revert-70ac1926
Ace 4 years ago
parent ad299e676c
commit d831ef3284

@ -377,8 +377,7 @@ public class GenericOperationDAOImpl implements OperationDAO {
for (ActivityStatus status : activityStatuses) {
if (deviceOpRes.getKey().equalsIgnoreCase(status.getDeviceIdentifier().getId())) {
if (status.getResponses() == null) {
List<OperationResponse> responses = new ArrayList<>();
status.setResponses(responses);
status.setResponses(new ArrayList<>());
}
status.getResponses().addAll(deviceOpRes.getValue());
}

Loading…
Cancel
Save