fix for Java 8
This commit is contained in:
parent
9e1e979855
commit
abbf2093e5
2 changed files with 3 additions and 2 deletions
|
@ -139,7 +139,7 @@ public class ModelInputWizard<T> extends Dialog {
|
|||
.filter(page -> page.isStart)
|
||||
.findFirst();
|
||||
|
||||
if (newPage.isEmpty()) {
|
||||
if (!newPage.isPresent()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue