Skip to content

Commit 359d917

Browse files
committed
Adopt to changed Mockk artifact name.
Closes #2405
1 parent fe940ad commit 359d917

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@
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>

src/main/java/org/springframework/data/redis/connection/Limit.java

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,7 @@
2121
*/
2222
public 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
}

0 commit comments

Comments
 (0)