Skip to content

Commit aabad92

Browse files
committed
Vars visibility
Signed-off-by: Zorglube <[email protected]>
1 parent d72a31a commit aabad92

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/main/java/org/springframework/data/util/PageCollectors.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public static <T> Collector<T, List<T>, Page<T>> toPage(final Pageable p) {
130130

131131
private static class PageCollectorImpl<T> implements Collector<T, List<T>, Page<T>> {
132132

133-
Pageable p;
133+
private final Pageable p;
134134

135135
public PageCollectorImpl(final Pageable p) {
136136
this.p = Objects.requireNonNull(p);
@@ -183,8 +183,8 @@ public static <T> Collector<T, List<T>, Page<T>> toSortedPage(final Pageable p,
183183

184184
private static class SortedPageCollectorImpl<T> implements Collector<T, List<T>, Page<T>> {
185185

186-
Pageable p;
187-
Comparator<T> c;
186+
private final Pageable p;
187+
private final Comparator<T> c;
188188

189189
public SortedPageCollectorImpl(final Pageable p, final Comparator<T> c) {
190190
this.p = Objects.requireNonNull(p);
@@ -242,8 +242,8 @@ public static <T> Collector<T, List<T>, Page<T>> toFilteredPage(final Pageable p
242242

243243
private static class FilteredPageCollectorImpl<T> implements Collector<T, List<T>, Page<T>> {
244244

245-
Pageable p;
246-
Predicate<T> f;
245+
private final Pageable p;
246+
private final Predicate<T> f;
247247

248248
public FilteredPageCollectorImpl(final Pageable p, final Predicate<T> f) {
249249
this.p = Objects.requireNonNull(p);
@@ -301,9 +301,9 @@ public static <T> Collector<T, List<T>, Page<T>> toFilteredSortedPage(final Page
301301

302302
private static class FilteredSortedPageCollectorImpl<T> implements Collector<T, List<T>, Page<T>> {
303303

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;
307307

308308
public FilteredSortedPageCollectorImpl(final Pageable p, final Predicate<T> f, final Comparator<T> c) {
309309
this.p = Objects.requireNonNull(p);

0 commit comments

Comments
 (0)