Skip to content

Commit 315fbd7

Browse files
mp911dechristophstrobl
authored andcommitted
Deprecate Cursor.open().
This method should not be called from code consuming the Cursor.
1 parent 917a3b2 commit 315fbd7

File tree

1 file changed

+4
-1
lines changed
  • src/main/java/org/springframework/data/redis/core

1 file changed

+4
-1
lines changed

src/main/java/org/springframework/data/redis/core/Cursor.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@ public interface Cursor<T> extends BoundedIterator<T>, CloseableIterator<T> {
4343
boolean isClosed();
4444

4545
/**
46-
* Opens cursor and returns itself.
46+
* Opens cursor and returns itself. This method is intended to be called by components constructing a {@link Cursor}
47+
* and should not be called externally.
4748
*
4849
* @return the opened cursor.
50+
* @deprecated to be removed from the interface in the next major version.
4951
*/
52+
@Deprecated
5053
Cursor<T> open();
5154

5255
/**

0 commit comments

Comments
 (0)