Skip to content
Open
Prev Previous commit
Next Next commit
Update the Cohort.java file
  • Loading branch information
dilankavishka committed Jan 21, 2025
commit 4b477fd1132d5ac253ae00b471d780dd2bd1314c
5 changes: 3 additions & 2 deletions api/src/main/java/org/openmrs/Cohort.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import javax.persistence.OneToMany;
import javax.persistence.Table;
import java.util.Arrays;
import java.util.Collection;
import java.util.Date;
import java.util.Set;
import java.util.TreeSet;
Expand Down Expand Up @@ -370,8 +371,8 @@ public void setMemberIds(Set<Integer> memberIds) {
}
}

public void setMemberships(Set<CohortMembership> members) {
this.memberships = members;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is something minor. Do we need the space here :) ?

public void setMemberships(Collection<CohortMembership> members) {
this.memberships = (Set<CohortMembership>) members;
}

/**
Expand Down
Loading