From f7279e1583b09d76b1febb55fcc845d8a2b905e6 Mon Sep 17 00:00:00 2001 From: yue9944882 <291271447@qq.com> Date: Wed, 30 Dec 2020 15:08:57 +0800 Subject: [PATCH] swap javadoc for filter annotations --- .../controller/annotation/DeleteWatchEventFilter.java | 11 ++++++----- .../controller/annotation/UpdateWatchEventFilter.java | 11 +++++------ 2 files changed, 11 insertions(+), 11 deletions(-) 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)