Fix misspelled method name in RedisPersistentEntity.

Resolves: #2933
Closes: #2935
This commit is contained in:
Seungrae
2024-06-30 21:57:36 +09:00
committed by Christoph Strobl
parent 6ce2896ba1
commit 4203a5bb67
3 changed files with 3 additions and 3 deletions

View File

@@ -592,7 +592,7 @@ public class RedisKeyValueAdapter extends AbstractKeyValueAdapter
RedisPersistentEntity<?> entity = this.converter.getMappingContext().getRequiredPersistentEntity(target.getClass());
if (entity.hasExplictTimeToLiveProperty()) {
if (entity.hasExplicitTimeToLiveProperty()) {
RedisPersistentProperty ttlProperty = entity.getExplicitTimeToLiveProperty();

View File

@@ -58,7 +58,7 @@ public class BasicRedisPersistentEntity<T> extends BasicKeyValuePersistentEntity
}
@Override
public boolean hasExplictTimeToLiveProperty() {
public boolean hasExplicitTimeToLiveProperty() {
return getExplicitTimeToLiveProperty() != null;
}

View File

@@ -41,7 +41,7 @@ public interface RedisPersistentEntity<T> extends KeyValuePersistentEntity<T, Re
* @return {@literal true} when a property is annotated with {@link org.springframework.data.redis.core.TimeToLive}.
* @since 1.8
*/
boolean hasExplictTimeToLiveProperty();
boolean hasExplicitTimeToLiveProperty();
/**
* Get the {@link PersistentProperty} that is annotated with {@link org.springframework.data.redis.core.TimeToLive}.