Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-174

Generated source files for enum types do not include description comments

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: Linux
      Platform: PC

    • 1101

    Description

      This:
      leaf inclusion-rule {
      description "Specify how inheritance will work for this label";
      default include;

      type enumeration {
      enum include

      { description "This label will be included normally in the matching."; }

      enum exclude

      { description "This label will be excluded from the matching. This allows removing labels that would have otherwise been included because of inheritence rules."; }

      }
      }

      becomes this:
      public enum InclusionRule {
      Include(0),
      Exclude(1);
      <SNIP>
      }

      This should have a javadoc comment on both the class as well as on each of the enum values.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lborak@cisco.com Ladislav Borak
            readams Rob Adams
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: