fix compile Java 8

This commit is contained in:
anhefti 2020-07-14 16:34:54 +02:00
parent f61b142cc7
commit 33952a1795

View file

@ -34,8 +34,7 @@ public class RestCallPageSupplier<T> implements PageSupplier<T> {
@Override
public Builder<T> newBuilder() {
final RestCall<Page<T>>.RestCallBuilder restCallBuilder = this.restCall.newBuilder();
return new Builder<>() {
final Builder<T> builer = new Builder<>() {
@Override
public Builder<T> withPaging(final int pageNumber, final int pageSize) {
restCallBuilder.withPaging(pageNumber, pageSize);
@ -75,8 +74,9 @@ public class RestCallPageSupplier<T> implements PageSupplier<T> {
public Result<Page<T>> getPage() {
return restCallBuilder.call();
}
};
return builer;
}
}