Skip to content

Commit

Permalink
Fixed spotbugs issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tilovillwock committed Dec 9, 2024
1 parent 5d50c68 commit 6b4fff4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.springframework.stereotype.Service;

import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

Expand Down Expand Up @@ -274,10 +275,10 @@ public static VariableAvailability fromAccessWays(List<String> accessWays) {
*/
@Getter
public static class RegistrationFailedException extends Exception implements DaraPidApiException {
private final List<VariableStatus> entries;
private final ArrayList<VariableStatus> entries;
public RegistrationFailedException(List<VariableStatus> entries) {
super("At least a subset of the variables could not be registered");
this.entries = entries;
this.entries = new ArrayList<>(entries);
}
}
}

0 comments on commit 6b4fff4

Please sign in to comment.