diff --git a/src/main/java/xyz/zhouxy/plusone/commons/annotation/UnsupportedOperation.java b/src/main/java/xyz/zhouxy/plusone/commons/annotation/UnsupportedOperation.java index 9f63ce9..9afdb9e 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/annotation/UnsupportedOperation.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/annotation/UnsupportedOperation.java @@ -4,8 +4,10 @@ import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +import java.lang.annotation.Documented; -@Target(ElementType.METHOD) -@Retention(RetentionPolicy.SOURCE) +@Documented +@Target({ ElementType.CONSTRUCTOR, ElementType.METHOD }) +@Retention(RetentionPolicy.RUNTIME) public @interface UnsupportedOperation { }