You use the annotation type in Listing 1 exactly the same way you use the built-in annotation types, except that you indicate the custom annotation by both its name and package.
清单1所示注释类型的使用方法和内置注释类型的使用方法完全相同,只不过要同时使用名称和所在的包来指示定制注释。
The value supplied here is fairly complex, but the use of TODOItems actually matches the single-value annotation style — except that the single value is an array.
这里提供的值比较复杂,但TODOItems的使用实际与单一值注释类型相符,只是这里的单一值是数组而已。
The value supplied here is fairly complex, but the use of TODOItems actually matches the single-value annotation style — except that the single value is an array.
这里提供的值比较复杂,但TODOItems的使用实际与单一值注释类型相符,只是这里的单一值是数组而已。
应用推荐