Redundant array copy in UnsharedNameTable

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: 8
    • Component/s: tools
    • b93
    • generic
    • windows_xp
    • Not verified

      The UnsharedNameTable.fromUtf8 method does this:
               byte[] bytes = new byte[len];
               System.arraycopy(cs, start, bytes, 0, len);
               n = new NameImpl(this, bytes, index++);
               System.arraycopy(cs, start, n.bytes, 0, len);

      The 2nd arraycopy is unnecessary.

            Assignee:
            Vicente Arturo Romero Zaldivar
            Reporter:
            James Holmlund (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: