[jira] [Commented] (YETUS-628) Class level InterfaceAudience is not applied to internal classes/enums
[ https://issues.apache.org/jira/browse/YETUS-628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16466075#comment-16466075 ] Grant Henke commented on YETUS-628: --- This was not working when generating Javadoc using the IncludePublicAnnotationsStandardDoclet. > Class level InterfaceAudience is not applied to internal classes/enums > -- > > Key: YETUS-628 > URL: https://issues.apache.org/jira/browse/YETUS-628 > Project: Yetus > Issue Type: Improvement > Components: Audience Annotations >Affects Versions: 0.7.0 >Reporter: Grant Henke >Priority: Major > > When defining a class with internal classes and enums, if no explicit > InterfaceAudience is applied to internal classes it would be useful if the > inner classes and enums had the same InterfaceAudience as the parent class. > Example: > {code:java} > @InterfaceAudience.Public > public class MyClass { >... >public enum MyEnum { >... >} >... > }{code} > For now every internal class/enum needs to be defined: > {code:java} > @InterfaceAudience.Public > public class MyClass { >... >@InterfaceAudience.Public >public enum MyEnum { >... >} >... > } > {code} > > This would also be useful for InterfaceStability. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (YETUS-628) Class level InterfaceAudience is not applied to internal classes/enums
[ https://issues.apache.org/jira/browse/YETUS-628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16466072#comment-16466072 ] Sean Busbey commented on YETUS-628: --- Interesting! I thought this already worked that way. I presume this is showing up as not working in some tool? I thought the Java API Compliance Checker at least worked as expected, but maybe it's expressly checking the containing class for annotations. > Class level InterfaceAudience is not applied to internal classes/enums > -- > > Key: YETUS-628 > URL: https://issues.apache.org/jira/browse/YETUS-628 > Project: Yetus > Issue Type: Improvement > Components: Audience Annotations >Affects Versions: 0.7.0 >Reporter: Grant Henke >Priority: Major > > When defining a class with internal classes and enums, if no explicit > InterfaceAudience is applied to internal classes it would be useful if the > inner classes and enums had the same InterfaceAudience as the parent class. > Example: > {code:java} > @InterfaceAudience.Public > public class MyClass { >... >public enum MyEnum { >... >} >... > }{code} > For now every internal class/enum needs to be defined: > {code:java} > @InterfaceAudience.Public > public class MyClass { >... >@InterfaceAudience.Public >public enum MyEnum { >... >} >... > } > {code} > > This would also be useful for InterfaceStability. -- This message was sent by Atlassian JIRA (v7.6.3#76005)