Details
-
Bug
-
Resolution: Fixed
-
P4
-
8
-
b93
-
generic
-
windows_xp
-
Not verified
Description
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.
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.