GH-754 - Rename EventPublication.isPublicationCompleted() to ….isCompleted().
This commit is contained in:
@@ -76,9 +76,19 @@ public interface EventPublication {
|
||||
/**
|
||||
* Returns whether the publication of the event has completed.
|
||||
*
|
||||
* @return will never be {@literal null}.
|
||||
* @deprecated since 1.3, use {@link #isCompleted()} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
default boolean isPublicationCompleted() {
|
||||
return isCompleted();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the publication of the event has completed.
|
||||
*
|
||||
* @since 1.3
|
||||
*/
|
||||
default boolean isCompleted() {
|
||||
return getCompletionDate().isPresent();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user