fixed for java 8

This commit is contained in:
anhefti 2021-05-17 22:48:41 +02:00
parent 89c306e35a
commit 1839d28df9

View file

@ -162,7 +162,7 @@ public class OlatLmsAPITemplate extends AbstractCachedCourseAccess implements Lm
final HashSet<String> leftIds = new HashSet<>(ids);
final Collection<QuizData> result = new ArrayList<>();
ids.stream()
.map(super::getFromCache)
.map(id -> super.getFromCache(id))
.forEach(q -> {
if (q != null) {
leftIds.remove(q.id);