StaticFactoryMethod 的 value 可以为空。

feature/net-util
ZhouXY108 2023-07-04 10:59:16 +08:00
parent 10039cfdc4
commit c216c00d98
1 changed files with 1 additions and 1 deletions

View File

@ -32,5 +32,5 @@ import java.lang.annotation.Target;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface StaticFactoryMethod {
Class<?> value();
Class<?> value() default void.class;
}