Avoid obsolete inspection of DefaultedPageable.
The instance can never be null and thus we don't actually have to check for that.
This commit is contained in:
@@ -198,10 +198,7 @@ class RepositoryEntityController extends AbstractRepositoryRestController implem
|
||||
throw new ResourceNotFoundException();
|
||||
}
|
||||
|
||||
Iterable<?> results = pageable.getPageable() != null //
|
||||
? invoker.invokeFindAll(pageable.getPageable()) //
|
||||
: invoker.invokeFindAll(sort);
|
||||
|
||||
Iterable<?> results = invoker.invokeFindAll(pageable.getPageable());
|
||||
ResourceMetadata metadata = resourceInformation.getResourceMetadata();
|
||||
Optional<Link> baseLink = Optional.of(getDefaultSelfLink());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user