changeset 2148:824932ecdbc8

7177168: Redundant array copy in UnsharedNameTable Reviewed-by: mcimadamore
author vromero
date Tue, 21 May 2013 11:41:21 +0100
parents 67cbd6d756f4
children 3d9750039fff
files src/share/classes/com/sun/tools/javac/util/UnsharedNameTable.java
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/util/UnsharedNameTable.java	Tue May 21 12:00:29 2013 +0200
+++ b/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.