DATAREDIS-1091 - Polishing.

Make fields final where possible. Update since tags.

Original pull request: #517.
This commit is contained in:
Mark Paluch
2020-07-15 10:09:21 +02:00
parent 546ebda2f2
commit f92ed7632d
3 changed files with 7 additions and 5 deletions

View File

@@ -869,7 +869,7 @@ public class RedisKeyValueAdapter extends AbstractKeyValueAdapter
* publishing {@link RedisKeyspaceEvent}.
*
* @author Christoph Strobl
* @since 2.3
* @since 2.4
*/
public enum ShadowCopy {
@@ -900,8 +900,8 @@ public class RedisKeyValueAdapter extends AbstractKeyValueAdapter
private final Object targetId;
private final byte[] targetKey;
private Set<byte[]> fieldsToRemove = new LinkedHashSet<>();
private Set<Index> indexesToUpdate = new LinkedHashSet<>();
private final Set<byte[]> fieldsToRemove = new LinkedHashSet<>();
private final Set<Index> indexesToUpdate = new LinkedHashSet<>();
RedisUpdateObject(byte[] targetKey, String keyspace, Object targetId) {

View File

@@ -170,9 +170,9 @@ public @interface EnableRedisRepositories {
/**
* Configuration flag controlling storage of phantom keys (shadow copies) of expiring entities to read them later when
* publishing {@link org.springframework.data.redis.core.RedisKeyspaceEvent keyspace events}.
*
*
* @return
* @since 2.3
* @since 2.4
*/
ShadowCopy shadowCopy() default ShadowCopy.DEFAULT;