Browse Source

DATACMNS-1491 - Fix JavaDoc of SliceImpl regarding nullability of Pageable parameter.

The docs previously stated that argument could be null when in fact that is rejected by the superclass' constructor.
pull/351/head
Keegan Witt 7 years ago committed by Oliver Drotbohm
parent
commit
21ad43f4a4
  1. 3
      src/main/java/org/springframework/data/domain/SliceImpl.java

3
src/main/java/org/springframework/data/domain/SliceImpl.java

@ -24,6 +24,7 @@ import org.springframework.lang.Nullable; @@ -24,6 +24,7 @@ import org.springframework.lang.Nullable;
* Default implementation of {@link Slice}.
*
* @author Oliver Gierke
* @author Keegan Witt
* @since 1.8
*/
public class SliceImpl<T> extends Chunk<T> {
@ -37,7 +38,7 @@ public class SliceImpl<T> extends Chunk<T> { @@ -37,7 +38,7 @@ public class SliceImpl<T> extends Chunk<T> {
* Creates a new {@link Slice} with the given content and {@link Pageable}.
*
* @param content the content of this {@link Slice}, must not be {@literal null}.
* @param pageable the paging information, can be {@literal null}.
* @param pageable the paging information, must not be {@literal null}.
* @param hasNext whether there's another slice following the current one.
*/
public SliceImpl(List<T> content, Pageable pageable, boolean hasNext) {

Loading…
Cancel
Save