@Documented @Retention(value=RUNTIME) @Target(value=ANNOTATION_TYPE) public @interface Inherited
请注意,如果使用带注释的类型用于注释一个类以外的任何其他类,则此元注释类型不会有任何效果。注意,这只是原因元注释注释可以从父类继承;对实现的接口注释没有影响。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.