fixed compile error
This commit is contained in:
parent
7bf8edaa54
commit
e2383fa4b3
1 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@ package ch.ethz.seb.sebserver.gui.service.examconfig.impl;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import org.apache.tomcat.util.buf.StringUtils;
|
import org.apache.tomcat.util.buf.StringUtils;
|
||||||
|
@ -95,7 +96,7 @@ public class ExamConfigurationServiceImpl implements ExamConfigurationService {
|
||||||
.stream()
|
.stream()
|
||||||
.filter(b -> b.builderFor(attribute, orientation))
|
.filter(b -> b.builderFor(attribute, orientation))
|
||||||
.findFirst()
|
.findFirst()
|
||||||
.orElseThrow();
|
.orElseThrow(() -> new NoSuchElementException("No InputFieldBuilder found for : " + attribute.type));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue