Refactor StudentStore

This commit is contained in:
Grzegorz Piwowarek 2016-10-04 17:29:49 +02:00
parent 4a19a6ba88
commit 1ecb726d7e
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
package models;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
@ -27,7 +27,7 @@ public class StudentStore {
}
public Set<Student> getAllStudents() {
return (Set<Student>)students.values();
return new HashSet<>(students.values());
}
public Student updateStudent(Student student) {