Skip to content

Commit

Permalink
fix: 🚑 unsuported operation on list
Browse files Browse the repository at this point in the history
  • Loading branch information
it-luigi authored and RVANDO12 committed Oct 6, 2023
1 parent 1575aa7 commit 5a876f1
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@
import org.springframework.transaction.annotation.Transactional;

import java.io.File;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import java.util.*;
import java.util.stream.Collectors;

@Service
Expand Down Expand Up @@ -116,7 +113,8 @@ public void indexExecution(PlannedIndexation plannedIndexation) {

final Execution savedExecution = executionRepository.save(processedExecution.get());

List<Long> newErrorIds = getErrorIds(Optional.of(savedExecution));
List<Long> newErrorIds = new ArrayList<>(getErrorIds(Optional.of(savedExecution)));

newErrorIds.removeAll(existingErrorIds);
if (!newErrorIds.isEmpty()) {
final Set<Problem> updatedProblems = errorService.autoAssignProblemsToNewErrors(projectId, newErrorIds);
Expand Down

0 comments on commit 5a876f1

Please sign in to comment.