From b5972257af0330a555e08eddeec78d6e4f8b7b6b Mon Sep 17 00:00:00 2001 From: Oliver Drotbohm Date: Mon, 28 Jan 2019 11:01:24 +0100 Subject: [PATCH] =?UTF-8?q?DATACMNS-1475=20-=20Fixed=20Javadoc=20of=20Slic?= =?UTF-8?q?e.nextPageable()=20and=20=E2=80=A6.previousPageable().?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Documented Slice.nextPageable() and ….previousPageable() to return Pageable.unpaged() instead of null. Follow-up ticket: DATACMNS-1476. --- .../java/org/springframework/data/domain/Slice.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/springframework/data/domain/Slice.java b/src/main/java/org/springframework/data/domain/Slice.java index 8808da125..e4f73bbd7 100644 --- a/src/main/java/org/springframework/data/domain/Slice.java +++ b/src/main/java/org/springframework/data/domain/Slice.java @@ -111,18 +111,17 @@ public interface Slice extends Streamable { } /** - * Returns the {@link Pageable} to request the next {@link Slice}. Can be {@literal null} in case the current - * {@link Slice} is already the last one. Clients should check {@link #hasNext()} before calling this method to make - * sure they receive a non-{@literal null} value. + * Returns the {@link Pageable} to request the next {@link Slice}. Can be {@link Pageable#unpaged()} in case the + * current {@link Slice} is already the last one. Clients should check {@link #hasNext()} before calling this method. * * @return */ Pageable nextPageable(); /** - * Returns the {@link Pageable} to request the previous {@link Slice}. Can be {@literal null} in case the current - * {@link Slice} is already the first one. Clients should check {@link #hasPrevious()} before calling this method make - * sure receive a non-{@literal null} value. + * Returns the {@link Pageable} to request the previous {@link Slice}. Can be {@link Pageable#unpaged()} in case the + * current {@link Slice} is already the first one. Clients should check {@link #hasPrevious()} before calling this + * method. * * @return */