diff --git a/spring/src/main/java/io/kubernetes/client/spring/extended/controller/annotation/DeleteWatchEventFilter.java b/spring/src/main/java/io/kubernetes/client/spring/extended/controller/annotation/DeleteWatchEventFilter.java index 5d43cfc934..8bde347b6d 100644 --- a/spring/src/main/java/io/kubernetes/client/spring/extended/controller/annotation/DeleteWatchEventFilter.java +++ b/spring/src/main/java/io/kubernetes/client/spring/extended/controller/annotation/DeleteWatchEventFilter.java @@ -19,12 +19,13 @@ import java.lang.annotation.Target; /** - * Indicates that the method is a filter for {@link io.kubernetes.client.informer.EventType#DELETED} - * from watches. + * Indicates that the method is a filter for {@link + * io.kubernetes.client.informer.EventType#MODIFIED} from watches. * - *

A delete-event filter must have the signature as {@link - * java.util.function.BiPredicate} where the 1st parameter is the old state of the - * resource and the 2nd is the new state. + *

A update-event filter must have the signature as {@link + * java.util.function.BiPredicate} where the 1st parameter is the + * "before-deletion" state of the resource and the 2nd indicates whether the cache entry for the + * resource is stale. */ @Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) diff --git a/spring/src/main/java/io/kubernetes/client/spring/extended/controller/annotation/UpdateWatchEventFilter.java b/spring/src/main/java/io/kubernetes/client/spring/extended/controller/annotation/UpdateWatchEventFilter.java index d00672e0f8..3bf944005c 100644 --- a/spring/src/main/java/io/kubernetes/client/spring/extended/controller/annotation/UpdateWatchEventFilter.java +++ b/spring/src/main/java/io/kubernetes/client/spring/extended/controller/annotation/UpdateWatchEventFilter.java @@ -18,13 +18,12 @@ import java.lang.annotation.Target; /** - * Indicates that the method is a filter for {@link - * io.kubernetes.client.informer.EventType#MODIFIED} from watches. + * Indicates that the method is a filter for {@link io.kubernetes.client.informer.EventType#DELETED} + * from watches. * - *

A update-event filter must have the signature as {@link - * java.util.function.BiPredicate} where the 1st parameter is the - * "before-deletion" state of the resource and the 2nd indicates whether the cache entry for the - * resource is stale. + *

A delete-event filter must have the signature as {@link + * java.util.function.BiPredicate} where the 1st parameter is the old state of the + * resource and the 2nd is the new state. */ @Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME)