You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@yetus.apache.org by "Grant Henke (JIRA)" <ji...@apache.org> on 2018/04/13 15:22:00 UTC

[jira] [Updated] (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:all-tabpanel ]

Grant Henke updated YETUS-628:
------------------------------
    Description: 
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.

  was:
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}


> 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)