From 01f351798928e8f94380614f1199ba1c0255e518 Mon Sep 17 00:00:00 2001 From: anhefti Date: Thu, 16 Nov 2023 11:30:00 +0100 Subject: [PATCH] fix for java 8 build --- .../lms/impl/moodle/plugin/MoodlePluginCourseAccess.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/plugin/MoodlePluginCourseAccess.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/plugin/MoodlePluginCourseAccess.java index db8d5458..36a5d7d1 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/plugin/MoodlePluginCourseAccess.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/plugin/MoodlePluginCourseAccess.java @@ -213,7 +213,7 @@ public class MoodlePluginCourseAccess extends AbstractCachedCourseAccess impleme final Set missingIds = new HashSet<>(ids); final Collection result = new ArrayList<>(); final Set fromCache = ids.stream() - .map(super::getFromCache) + .map(id -> super.getFromCache(id)) .filter(Objects::nonNull) .map(qd -> { result.add(qd); @@ -225,7 +225,7 @@ public class MoodlePluginCourseAccess extends AbstractCachedCourseAccess impleme result.addAll(getRestTemplate() .map(template -> getQuizzesForIds(template, ids)) - .map(super::putToCache) + .map(q -> super.putToCache(q)) .onError(error -> log.error("Failed to get courses for: {}", ids, error)) .getOrElse(Collections::emptyList)); } @@ -246,7 +246,7 @@ public class MoodlePluginCourseAccess extends AbstractCachedCourseAccess impleme final Set ids = Stream.of(id).collect(Collectors.toSet()); final Iterator iterator = getRestTemplate() .map(template -> getQuizzesForIds(template, ids)) - .map(super::putToCache) + .map(q -> super.putToCache(q)) .getOr(Collections.emptyList()) .iterator();