From 8038d8830d876d47f91e55c5ecdc046a7c563287 Mon Sep 17 00:00:00 2001 From: mikereiche Date: Tue, 17 Aug 2021 11:17:10 -0700 Subject: [PATCH] Add target annotation to expiry annotation. 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 92ca7e0bb..475fcd2a9 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 @@ @Persistent @Inherited @Retention(RetentionPolicy.RUNTIME) -@Target({ ElementType.TYPE }) +@Target({ ElementType.TYPE, ElementType.ANNOTATION_TYPE }) public @interface Expiry { /**