StaticFactoryMethod 的 value 可以为空。
parent
10039cfdc4
commit
c216c00d98
|
@ -32,5 +32,5 @@ import java.lang.annotation.Target;
|
||||||
@Target(ElementType.METHOD)
|
@Target(ElementType.METHOD)
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
public @interface StaticFactoryMethod {
|
public @interface StaticFactoryMethod {
|
||||||
Class<?> value();
|
Class<?> value() default void.class;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue