Skip to content

Commit f92ed76

Browse files
committed
DATAREDIS-1091 - Polishing.
Make fields final where possible. Update since tags. Original pull request: spring-projects#517.
1 parent 546ebda commit f92ed76

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ public enum EnableKeyspaceEvents {
869869
* publishing {@link RedisKeyspaceEvent}.
870870
*
871871
* @author Christoph Strobl
872-
* @since 2.3
872+
* @since 2.4
873873
*/
874874
public enum ShadowCopy {
875875

@@ -900,8 +900,8 @@ static class RedisUpdateObject {
900900
private final Object targetId;
901901
private final byte[] targetKey;
902902

903-
private Set<byte[]> fieldsToRemove = new LinkedHashSet<>();
904-
private Set<Index> indexesToUpdate = new LinkedHashSet<>();
903+
private final Set<byte[]> fieldsToRemove = new LinkedHashSet<>();
904+
private final Set<Index> indexesToUpdate = new LinkedHashSet<>();
905905

906906
RedisUpdateObject(byte[] targetKey, String keyspace, Object targetId) {
907907

src/main/java/org/springframework/data/redis/repository/configuration/EnableRedisRepositories.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@
170170
/**
171171
* Configuration flag controlling storage of phantom keys (shadow copies) of expiring entities to read them later when
172172
* publishing {@link org.springframework.data.redis.core.RedisKeyspaceEvent keyspace events}.
173-
*
173+
*
174174
* @return
175-
* @since 2.3
175+
* @since 2.4
176176
*/
177177
ShadowCopy shadowCopy() default ShadowCopy.DEFAULT;
178178

src/test/java/org/springframework/data/redis/core/RedisKeyValueAdapterTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858
import org.springframework.data.redis.core.mapping.RedisMappingContext;
5959

6060
/**
61+
* Integration tests for {@link RedisKeyValueAdapter}.
62+
*
6163
* @author Christoph Strobl
6264
* @author Mark Paluch
6365
*/

0 commit comments

Comments
 (0)