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

Codegenerator emits lengthConstraints unnnecessarily, leading to a warning

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 241

    Description

      org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev131125.IsisAreaIdentifier contains the following code:

      public static List<Range<Integer>> getLength()

      { final List<Range<Integer>> result = new ArrayList<>(); List<Range<Integer>> lengthConstraints = new ArrayList<>(); result.add(Range.closed(20, 20)); return result; }

      Note that lengthConstraints is never touched, resulting in a warning being raised by Eclipse.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: