File tree Expand file tree Collapse file tree 2 files changed +15
-13
lines changed
src/main/java/org/springframework/data/redis/connection Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 221221
222222 <dependency >
223223 <groupId >io.mockk</groupId >
224- <artifactId >mockk</artifactId >
224+ <artifactId >mockk-jvm </artifactId >
225225 <version >${mockk} </version >
226226 <scope >test</scope >
227227 </dependency >
Original file line number Diff line number Diff line change 2121 */
2222public class Limit {
2323
24- private static final Limit UNLIMITED = new Limit () {
25-
26- @ Override
27- public int getCount () {
28- return -1 ;
29- }
30-
31- @ Override
32- public int getOffset () {
33- return super .getOffset ();
34- }
35- };
24+ private static final Limit UNLIMITED = new Unlimited ();
3625
3726 int offset ;
3827 int count ;
@@ -70,4 +59,17 @@ public boolean isUnlimited() {
7059 public static Limit unlimited () {
7160 return UNLIMITED ;
7261 }
62+
63+ private static class Unlimited extends Limit {
64+
65+ @ Override
66+ public int getCount () {
67+ return -1 ;
68+ }
69+
70+ @ Override
71+ public int getOffset () {
72+ return super .getOffset ();
73+ }
74+ }
7375}
You can’t perform that action at this time.
0 commit comments