Committed merge-related bug fixes

This commit is contained in:
Connor Taylor-Brown
2017-09-13 13:18:25 +12:00
parent 70bbc89239
commit 83e696b79e
6 changed files with 44 additions and 19 deletions
@@ -42,14 +42,12 @@ public class SourceIdAllocator {
}
List<Integer> allocatedIDs = mockRace.getRaceDataSource().getParticipants();
System.out.println(allocatedIDs);
List<Integer> allIDs = new ArrayList<>(mockRace.getBoatDataSource().getBoats().keySet());
System.out.println(allIDs);
//Get list of unallocated ids.
List<Integer> unallocatedIDs = new ArrayList<>(allIDs);
unallocatedIDs.removeAll(allocatedIDs);
System.out.println(unallocatedIDs.isEmpty());
if (!unallocatedIDs.isEmpty()) {