From b0dd3cda6c8874a922dd97f1761ab8282443d0d6 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Tue, 23 Mar 2021 11:49:17 +0100 Subject: [PATCH] Deprecate Cursor.open(). This method should not be called from code consuming the Cursor. See: #1575 Original Pull Request: #2014 --- .../java/org/springframework/data/redis/core/Cursor.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); /**