[YANGTOOLS-66] Codegenerator emits lengthConstraints unnnecessarily, leading to a warning Created: 12/Dec/13  Updated: 10/Apr/22  Resolved: 13/Dec/13

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Robert Varga Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 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.



 Comments   
Comment by Martin Vitez [ 13/Dec/13 ]

Fixed:

https://git.opendaylight.org/gerrit/#/c/3691/

Generated at Wed Feb 07 20:52:10 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.