[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
Platform: 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/

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