Skip to content

Commit

Permalink
Deprecate method instead of removing it.
Browse files Browse the repository at this point in the history
Original Pull Request: #2935
  • Loading branch information
christophstrobl committed Jul 2, 2024
1 parent 4203a5b commit 8b5f29e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ public TimeToLiveAccessor getTimeToLiveAccessor() {
return this.timeToLiveAccessor;
}

@Override
public boolean hasExplicitTimeToLiveProperty() {
return getExplicitTimeToLiveProperty() != null;
}

@Override
@Nullable
public RedisPersistentProperty getExplicitTimeToLiveProperty() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,20 @@ 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
* @deprecated in favor of {@link #hasExplicitTimeToLiveProperty()}.
*/
boolean hasExplicitTimeToLiveProperty();
@Deprecated(forRemoval = true)
default boolean hasExplictTimeToLiveProperty() {
return hasExplicitTimeToLiveProperty();
}

/**
* @return {@literal true} when a property is annotated with {@link org.springframework.data.redis.core.TimeToLive}.
* @since 3.4
*/
default boolean hasExplicitTimeToLiveProperty() {
return getExplicitTimeToLiveProperty() != null;
}

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

0 comments on commit 8b5f29e

Please sign in to comment.