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

Generated DTOs for types use inefficient instantiation

    XMLWordPrintable

Details

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

    • 1432
    • 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.

      Attachments

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

        Activity

          People

            lborak@cisco.com Ladislav Borak
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: