diff --git a/src/main/java/org/springframework/data/redis/core/Cursor.java b/src/main/java/org/springframework/data/redis/core/Cursor.java index 0ecf77749..76b93105e 100644 --- a/src/main/java/org/springframework/data/redis/core/Cursor.java +++ b/src/main/java/org/springframework/data/redis/core/Cursor.java @@ -43,10 +43,13 @@ public interface Cursor extends BoundedIterator, CloseableIterator { boolean isClosed(); /** - * Opens cursor and returns itself. + * Opens cursor and returns itself. This method is intended to be called by components constructing a {@link Cursor} + * and should not be called externally. * * @return the opened cursor. + * @deprecated to be removed from the interface in the next major version. */ + @Deprecated Cursor open(); /**