Refactor StudentStore
This commit is contained in:
parent
4a19a6ba88
commit
1ecb726d7e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue