Skip to content

Commit

Permalink
HHH-18545 Use CLASS retention for documentation annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
beikov committed Jan 14, 2025
1 parent b14f188 commit fe8b3e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
}
2 changes: 1 addition & 1 deletion hibernate-core/src/main/java/org/hibernate/cfg/Unsafe.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* are largely considered unsupported.
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Retention(RetentionPolicy.CLASS)
@Documented
public @interface Unsafe {
}

0 comments on commit fe8b3e6

Please sign in to comment.