Skip to content

Commit baccb41

Browse files
committed
DATACMNS-867 - Cleanups.
SliceImpl now already checks Sort instance for not null. Removed unnecessary warnings supression.
1 parent bc28a6b commit baccb41

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public SliceImpl(List<T> content, Pageable pageable, boolean hasNext) {
5353
* @param content must not be {@literal null}.
5454
*/
5555
public SliceImpl(List<T> content) {
56-
this(content, null, false);
56+
this(content, Pageable.unpaged(), false);
5757
}
5858

5959
/*

src/test/java/org/springframework/data/repository/query/ResultProcessorUnitTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ public void createsProjectionFromProperties() throws Exception {
7474
}
7575

7676
@Test // DATACMNS-89
77-
@SuppressWarnings("unchecked")
7877
public void createsListOfProjectionsFormNestedLists() throws Exception {
7978

8079
ResultProcessor information = getProcessor("findAllProjection");

0 commit comments

Comments
 (0)