mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-12 06:29:37 +00:00
7177168: Redundant array copy in UnsharedNameTable
Reviewed-by: mcimadamore
This commit is contained in:
parent
4a4457b237
commit
a95cb95e1f
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -125,8 +125,6 @@ public class UnsharedNameTable extends Name.Table {
|
||||
System.arraycopy(cs, start, bytes, 0, len);
|
||||
n = new NameImpl(this, bytes, index++);
|
||||
|
||||
System.arraycopy(cs, start, n.bytes, 0, len);
|
||||
|
||||
HashEntry newEntry = new HashEntry(n);
|
||||
|
||||
if (previousNonNullTableEntry == null) { // We are not the first name with that hashCode.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user