修改 Target 和 Retention。

feature/net-util
ZhouXY108 2023-09-09 11:09:06 +08:00
parent 85c6bf012c
commit efc732fe8d
1 changed files with 4 additions and 2 deletions

View File

@ -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 {
}