[YANGTOOLS-229] Generated DTOs for types use inefficient instantiation Created: 26/Jul/14 Updated: 10/Apr/22 Resolved: 06/Aug/14 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Robert Varga | Assignee: | Ladislav Borak |
| 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: | 1432 |
| Priority: | High |
| Description |
|
model/l2-types/target/generated-sources/sal/org/opendaylight/yang/gen/v1/urn/opendaylight/l2/types/rev130827/VlanDei.java public static VlanDei getDefaultInstance(String defaultValue) { return new VlanDei(new java.lang.Boolean(defaultValue)); }should read Boolean.valueOf(defaultValue), thus sharing instances. Same goes for Byte, Short, Integer and Long. |
| Comments |
| Comment by Ladislav Borak [ 30/Jul/14 ] |
|
proposed patch: https://git.opendaylight.org/gerrit/#/c/9502/ |