Commit 43a25a56 authored by Grzegorz Pietrusza's avatar Grzegorz Pietrusza

inline variables

parent dc5c4dad
...@@ -36,12 +36,10 @@ public class SolutionsRepository implements Repository ...@@ -36,12 +36,10 @@ public class SolutionsRepository implements Repository
{ {
//todo: merge with upper //todo: merge with upper
//todo: use morphia filter //todo: use morphia filter
List<Solution> solutions = datastore.createQuery(Solution.class) return datastore.createQuery(Solution.class)
.asList(); .asList().stream()
List<Solution> collect = solutions.stream()
.filter(solution -> solution.getTeam().equals(team)) .filter(solution -> solution.getTeam().equals(team))
.collect(Collectors.toList()); .collect(Collectors.toList());
return collect;
//todo: group by task //todo: group by task
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment