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.
This commit is contained in:
Keegan Witt
2019-03-04 14:20:59 -05:00
committed by Oliver Drotbohm
parent ea3af3dbbb
commit 4b55b90806

View File

@@ -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> {
* 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) {