From ad2f93e6cdcaeef9ad8694acdccdd62250d53586 Mon Sep 17 00:00:00 2001 From: anhefti Date: Wed, 17 Mar 2021 12:32:45 +0100 Subject: [PATCH] fixed for Java 8 --- .../ch/ethz/seb/sebserver/gui/service/ResourceService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/service/ResourceService.java b/src/main/java/ch/ethz/seb/sebserver/gui/service/ResourceService.java index 8098140b..cf2f2697 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/service/ResourceService.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/service/ResourceService.java @@ -18,7 +18,6 @@ import java.util.List; import java.util.Locale; import java.util.Map; import java.util.function.Function; -import java.util.function.Predicate; import java.util.function.Supplier; import java.util.stream.Collectors; @@ -184,7 +183,7 @@ public class ResourceService { public List> lmsTypeResources() { return Arrays.stream(LmsType.values()) - .filter(Predicate.not(this.disabledLmsTypes::contains)) + .filter(lmsType -> !this.disabledLmsTypes.contains(lmsType)) .map(lmsType -> new Tuple<>( lmsType.name(), this.i18nSupport.getText(LMSSETUP_TYPE_PREFIX + lmsType.name(), lmsType.name())))