fix for Java 8

This commit is contained in:
anhefti 2020-07-14 16:58:20 +02:00
parent 9e1e979855
commit abbf2093e5
2 changed files with 3 additions and 2 deletions

View file

@ -139,7 +139,7 @@ public class ModelInputWizard<T> extends Dialog {
.filter(page -> page.isStart)
.findFirst();
if (newPage.isEmpty()) {
if (!newPage.isPresent()) {
return;
}

View file

@ -31,9 +31,10 @@ public class RestCallPageSupplier<T> implements PageSupplier<T> {
return this.restCall.getEntityType();
}
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public Builder<T> newBuilder() {
return new RestCallBuilderAdapter<>(this.restCall.newBuilder());
return new RestCallBuilderAdapter(this.restCall.newBuilder());
}
public static final class RestCallBuilderAdapter<T> implements Builder<T> {