Skip to content

Commit 7d94bfc

Browse files
Polishing.
Reintroduce public compile-time constants but flag them deprecated with replacement hint. Original Pull Request: #2158
1 parent 2f202fd commit 7d94bfc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/main/java/org/springframework/data/redis/core/convert/MappingRedisConverter.java

+12
Original file line numberDiff line numberDiff line change
@@ -1223,6 +1223,12 @@ public static class KeyspaceIdentifier {
12231223
public static final String DELIMITER = ":";
12241224
public static final String PHANTOM_SUFFIX = DELIMITER + PHANTOM;
12251225

1226+
/**
1227+
* @deprecated since 2.6. Please use {@link #DELIMITER} instead.
1228+
*/
1229+
@Deprecated(/* since="2.6" */)
1230+
public static final String DELIMITTER = DELIMITER;
1231+
12261232
private final String keyspace;
12271233
private final String id;
12281234
private final boolean phantomKey;
@@ -1303,6 +1309,12 @@ public static class BinaryKeyspaceIdentifier {
13031309
public static final byte DELIMITER = ':';
13041310
public static final byte[] PHANTOM_SUFFIX = ByteUtils.concat(new byte[] { DELIMITER }, PHANTOM);
13051311

1312+
/**
1313+
* @deprecated since 2.6. Please use {@link #DELIMITER} instead.
1314+
*/
1315+
@Deprecated(/* since="2.6" */)
1316+
public static final byte DELIMITTER = DELIMITER;
1317+
13061318
private final byte[] keyspace;
13071319
private final byte[] id;
13081320
private final boolean phantomKey;

0 commit comments

Comments
 (0)