Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit d4047df

Browse files
author
FredrikSchäferVitagroup
committed
SORMAS-Foundation#3294 implemented change request
1 parent 274d521 commit d4047df

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

sormas-backend/src/main/java/de/symeda/sormas/backend/person/PersonFacadeEjb.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -465,16 +465,14 @@ public FollowUpStatus getMostRelevantFollowUpStatusByUuid(String uuid) {
465465
}
466466
}
467467

468-
private boolean listOnlyContainsStatus(List<FollowUpStatusDto> list, FollowUpStatus prameterStatus) {
468+
private boolean listOnlyContainsStatus(List<FollowUpStatusDto> list, FollowUpStatus parameterStatus) {
469469
if (list.isEmpty()) {
470470
return false;
471471
}
472-
if (prameterStatus == null) {
473-
throw new IllegalArgumentException("Object given as parameter must not be null.");
474-
}
472+
assert (parameterStatus != null);
475473

476474
for (FollowUpStatusDto status : list) {
477-
if (!prameterStatus.equals(status)) {
475+
if (!parameterStatus.equals(status)) {
478476
return false;
479477
}
480478
}

0 commit comments

Comments
 (0)