Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java @Category注释中有多个类型_Java_Gwt_Annotations_Autobean - Fatal编程技术网

Java @Category注释中有多个类型

Java @Category注释中有多个类型,java,gwt,annotations,autobean,Java,Gwt,Annotations,Autobean,GWT说: @Category注释可以指定多个类别类型 以下语法给出了标记“,”和/预期的语法错误: @Category(FooCategory.class, BarCategory.class) public interface FooBarFactory extends AutoBeanFactory { ... } 指定多个类别类的语法是什么?用{和}包装参数 @Category({FooCategory.class, BarCategory.class}) public in

GWT说:

@Category注释可以指定多个类别类型

以下语法给出了标记“,”和/预期的语法错误:

@Category(FooCategory.class, BarCategory.class)
public interface FooBarFactory extends AutoBeanFactory { 
    ...
}

指定多个类别类的语法是什么?

{
}
包装参数

@Category({FooCategory.class, BarCategory.class})
public interface FooBarFactory extends AutoBeanFactory { 
    ...
}