Skip to content

Commit 4203a5b

Browse files
Seungpangchristophstrobl
authored andcommitted
Fix misspelled method name in RedisPersistentEntity.
Resolves: #2933 Closes: #2935
1 parent 6ce2896 commit 4203a5b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ private <T> T readBackTimeToLiveIfSet(@Nullable byte[] key, @Nullable T target)
592592

593593
RedisPersistentEntity<?> entity = this.converter.getMappingContext().getRequiredPersistentEntity(target.getClass());
594594

595-
if (entity.hasExplictTimeToLiveProperty()) {
595+
if (entity.hasExplicitTimeToLiveProperty()) {
596596

597597
RedisPersistentProperty ttlProperty = entity.getExplicitTimeToLiveProperty();
598598

src/main/java/org/springframework/data/redis/core/mapping/BasicRedisPersistentEntity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public TimeToLiveAccessor getTimeToLiveAccessor() {
5858
}
5959

6060
@Override
61-
public boolean hasExplictTimeToLiveProperty() {
61+
public boolean hasExplicitTimeToLiveProperty() {
6262
return getExplicitTimeToLiveProperty() != null;
6363
}
6464

src/main/java/org/springframework/data/redis/core/mapping/RedisPersistentEntity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public interface RedisPersistentEntity<T> extends KeyValuePersistentEntity<T, Re
4141
* @return {@literal true} when a property is annotated with {@link org.springframework.data.redis.core.TimeToLive}.
4242
* @since 1.8
4343
*/
44-
boolean hasExplictTimeToLiveProperty();
44+
boolean hasExplicitTimeToLiveProperty();
4545

4646
/**
4747
* Get the {@link PersistentProperty} that is annotated with {@link org.springframework.data.redis.core.TimeToLive}.

0 commit comments

Comments
 (0)