From 1ecb726d7e068b520bc47808253cbaea7db7af96 Mon Sep 17 00:00:00 2001 From: Grzegorz Piwowarek Date: Tue, 4 Oct 2016 17:29:49 +0200 Subject: [PATCH] Refactor StudentStore --- play-framework/student-api/app/models/StudentStore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/play-framework/student-api/app/models/StudentStore.java b/play-framework/student-api/app/models/StudentStore.java index e665de399a..1ebc14ffab 100644 --- a/play-framework/student-api/app/models/StudentStore.java +++ b/play-framework/student-api/app/models/StudentStore.java @@ -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 getAllStudents() { - return (Set)students.values(); + return new HashSet<>(students.values()); } public Student updateStudent(Student student) {