Skip to content

Commit 4b55b90

Browse files
keeganwittodrotbohm
authored andcommitted
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.
1 parent ea3af3d commit 4b55b90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* Default implementation of {@link Slice}.
2525
*
2626
* @author Oliver Gierke
27+
* @author Keegan Witt
2728
* @since 1.8
2829
*/
2930
public class SliceImpl<T> extends Chunk<T> {
@@ -37,7 +38,7 @@ public class SliceImpl<T> extends Chunk<T> {
3738
* Creates a new {@link Slice} with the given content and {@link Pageable}.
3839
*
3940
* @param content the content of this {@link Slice}, must not be {@literal null}.
40-
* @param pageable the paging information, can be {@literal null}.
41+
* @param pageable the paging information, must not be {@literal null}.
4142
* @param hasNext whether there's another slice following the current one.
4243
*/
4344
public SliceImpl(List<T> content, Pageable pageable, boolean hasNext) {

0 commit comments

Comments
 (0)