Skip to content

Commit 9bb5862

Browse files
committed
HHH-18545 Use CLASS retention for documentation annotations
1 parent e5e5cdc commit 9bb5862

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hibernate-core/src/main/java/org/hibernate/cfg/Compatibility.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* considered temporary and are usually also {@linkplain Deprecated deprecated}.
2020
*/
2121
@Target(ElementType.FIELD)
22-
@Retention(RetentionPolicy.RUNTIME)
22+
@Retention(RetentionPolicy.CLASS)
2323
@Documented
2424
public @interface Compatibility {
2525
}

hibernate-core/src/main/java/org/hibernate/cfg/Unsafe.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* are largely considered unsupported.
1919
*/
2020
@Target(ElementType.FIELD)
21-
@Retention(RetentionPolicy.RUNTIME)
21+
@Retention(RetentionPolicy.CLASS)
2222
@Documented
2323
public @interface Unsafe {
2424
}

0 commit comments

Comments
 (0)