[YANGTOOLS-389] Binding DTOs: enums have inefficient forValue() implementation Created: 10/Dec/14 Updated: 10/Apr/22 Resolved: 15/Dec/14 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 2498 |
| Description |
|
YANG enumerations map to an enum, which has a forValue() method. This gets realized this way: public enum BgpOrigin { static { } public static BgpOrigin forValue(int valueArg) { return valueMap.get(valueArg); }} There are multiple things wrong here:
|
| Comments |
| Comment by Robert Varga [ 10/Dec/14 ] |