Uploaded image for project: 'Yetus'
  1. Yetus
  2. YETUS-628

Class level InterfaceAudience is not applied to internal classes/enums

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.7.0
    • None
    • Audience Annotations
    • None

    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: 

      @InterfaceAudience.Public
      public class MyClass {
         ...
         public enum MyEnum {
         ...
         }
         ...
      }

      For now every internal class/enum needs to be defined: 

      @InterfaceAudience.Public
      public class MyClass {
         ...
         @InterfaceAudience.Public
         public enum MyEnum {
         ...
         }
         ...
      }
      

       

      This would also be useful for InterfaceStability.

      Attachments

        Activity

          People

            Unassigned Unassigned
            granthenke Grant Henke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: