From 6344b948256086ed2a975824e70db447007e2470 Mon Sep 17 00:00:00 2001 From: Michael Reiche <48999328+mikereiche@users.noreply.github.com> Date: Tue, 17 Aug 2021 11:21:52 -0700 Subject: [PATCH] Add target annotation to expiry annotation. (#1193) It should have already had this as it was being used as an annotation in AirportRepository.ComposedMetaAnnotation. I believe a recent update to intellij now flags it as an error in the IDE. Closes #1192. --- .../org/springframework/data/couchbase/core/mapping/Expiry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/springframework/data/couchbase/core/mapping/Expiry.java b/src/main/java/org/springframework/data/couchbase/core/mapping/Expiry.java index 92ca7e0b..475fcd2a 100644 --- a/src/main/java/org/springframework/data/couchbase/core/mapping/Expiry.java +++ b/src/main/java/org/springframework/data/couchbase/core/mapping/Expiry.java @@ -33,7 +33,7 @@ import org.springframework.data.annotation.Persistent; @Persistent @Inherited @Retention(RetentionPolicy.RUNTIME) -@Target({ ElementType.TYPE }) +@Target({ ElementType.TYPE, ElementType.ANNOTATION_TYPE }) public @interface Expiry { /**