fixed java 8 compile

This commit is contained in:
anhefti 2020-07-30 16:59:11 +02:00
parent c7728d2fb3
commit 640211649c

View file

@ -31,7 +31,7 @@ public class ExamProctoringServiceFactory {
public ExamProctoringServiceFactory(final Collection<ExamProctoringService> proctorServices) {
this.services = new EnumMap<>(proctorServices
.stream()
.collect(Collectors.toMap(
.collect(Collectors.<ExamProctoringService, ServerType, ExamProctoringService> toMap(
s -> s.getType(),
Function.identity())));
}