Skip to content

Commit

Permalink
Student Scheduling: Enrollment
Browse files Browse the repository at this point in the history
- equals: include reservation in the equality checking
- this fixes an issue with solution restore (current solution containing the same enrollment, but without the reservation)
  • Loading branch information
tomas-muller committed Jun 26, 2019
1 parent bed1b08 commit 9e14989
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/org/cpsolver/studentsct/model/Enrollment.java
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,8 @@ public boolean equals(Object o) {
return false;
if (!ToolBox.equals(getAssignments(), e.getAssignments()))
return false;
if (!ToolBox.equals(getReservation(), e.getReservation()))
return false;
return true;
}

Expand Down

0 comments on commit 9e14989

Please sign in to comment.