From fe8b3e6be19cc0c950fcaed6a16bbc4bc8110930 Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Fri, 20 Dec 2024 14:23:55 +0100 Subject: [PATCH] HHH-18545 Use CLASS retention for documentation annotations --- .../src/main/java/org/hibernate/cfg/Compatibility.java | 2 +- hibernate-core/src/main/java/org/hibernate/cfg/Unsafe.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/Compatibility.java b/hibernate-core/src/main/java/org/hibernate/cfg/Compatibility.java index 5033b5e14582..812a18c8335d 100644 --- a/hibernate-core/src/main/java/org/hibernate/cfg/Compatibility.java +++ b/hibernate-core/src/main/java/org/hibernate/cfg/Compatibility.java @@ -19,7 +19,7 @@ * considered temporary and are usually also {@linkplain Deprecated deprecated}. */ @Target(ElementType.FIELD) -@Retention(RetentionPolicy.RUNTIME) +@Retention(RetentionPolicy.CLASS) @Documented public @interface Compatibility { } diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/Unsafe.java b/hibernate-core/src/main/java/org/hibernate/cfg/Unsafe.java index 244b20cdb5f0..ca9056957d72 100644 --- a/hibernate-core/src/main/java/org/hibernate/cfg/Unsafe.java +++ b/hibernate-core/src/main/java/org/hibernate/cfg/Unsafe.java @@ -18,7 +18,7 @@ * are largely considered unsupported. */ @Target(ElementType.FIELD) -@Retention(RetentionPolicy.RUNTIME) +@Retention(RetentionPolicy.CLASS) @Documented public @interface Unsafe { }