7177168: Redundant array copy in UnsharedNameTable
authorvromero
Tue, 21 May 2013 11:41:21 +0100
changeset 17797 4ee9186c3998
parent 17796 7d71baa1216c
child 17798 abe47e71498b
7177168: Redundant array copy in UnsharedNameTable Reviewed-by: mcimadamore
langtools/src/share/classes/com/sun/tools/javac/util/UnsharedNameTable.java
--- a/langtools/src/share/classes/com/sun/tools/javac/util/UnsharedNameTable.java	Tue May 21 12:00:29 2013 +0200
+++ b/langtools/src/share/classes/com/sun/tools/javac/util/UnsharedNameTable.java	Tue May 21 11:41:21 2013 +0100
@@ -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 @@
         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.