@@ -130,7 +130,7 @@ public static <T> Collector<T, List<T>, Page<T>> toPage(final Pageable p) {
130
130
131
131
private static class PageCollectorImpl <T > implements Collector <T , List <T >, Page <T >> {
132
132
133
- Pageable p ;
133
+ private final Pageable p ;
134
134
135
135
public PageCollectorImpl (final Pageable p ) {
136
136
this .p = Objects .requireNonNull (p );
@@ -183,8 +183,8 @@ public static <T> Collector<T, List<T>, Page<T>> toSortedPage(final Pageable p,
183
183
184
184
private static class SortedPageCollectorImpl <T > implements Collector <T , List <T >, Page <T >> {
185
185
186
- Pageable p ;
187
- Comparator <T > c ;
186
+ private final Pageable p ;
187
+ private final Comparator <T > c ;
188
188
189
189
public SortedPageCollectorImpl (final Pageable p , final Comparator <T > c ) {
190
190
this .p = Objects .requireNonNull (p );
@@ -242,8 +242,8 @@ public static <T> Collector<T, List<T>, Page<T>> toFilteredPage(final Pageable p
242
242
243
243
private static class FilteredPageCollectorImpl <T > implements Collector <T , List <T >, Page <T >> {
244
244
245
- Pageable p ;
246
- Predicate <T > f ;
245
+ private final Pageable p ;
246
+ private final Predicate <T > f ;
247
247
248
248
public FilteredPageCollectorImpl (final Pageable p , final Predicate <T > f ) {
249
249
this .p = Objects .requireNonNull (p );
@@ -301,9 +301,9 @@ public static <T> Collector<T, List<T>, Page<T>> toFilteredSortedPage(final Page
301
301
302
302
private static class FilteredSortedPageCollectorImpl <T > implements Collector <T , List <T >, Page <T >> {
303
303
304
- Pageable p ;
305
- Predicate <T > f ;
306
- Comparator <T > c ;
304
+ private final Pageable p ;
305
+ private final Predicate <T > f ;
306
+ private final Comparator <T > c ;
307
307
308
308
public FilteredSortedPageCollectorImpl (final Pageable p , final Predicate <T > f , final Comparator <T > c ) {
309
309
this .p = Objects .requireNonNull (p );
0 commit comments