只有一个属性,属性名为 value 即可。

This commit is contained in:
zhouxy108 2023-04-15 13:48:50 +08:00
parent ef65a583b1
commit 96784e1263

View File

@ -16,5 +16,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<?> type(); Class<?> value();
} }