changeset 1310:ce55eb6668d9

6834805: Improve jar -C performance Summary: Store "-C" directories in a HashSet, not List, to remove duplicates Reviewed-by: sherman Contributed-by: jeremymanson@google.com
author martin
date Mon, 22 Jun 2009 20:47:51 -0700
parents 7704895771b5
children ff32c270102a
files src/share/classes/sun/tools/jar/Main.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/tools/jar/Main.java	Mon Jun 22 19:22:47 2009 -0700
+++ b/src/share/classes/sun/tools/jar/Main.java	Mon Jun 22 20:47:51 2009 -0700
@@ -56,7 +56,7 @@
     Set<File> entries = new LinkedHashSet<File>();
 
     // Directories specified by "-C" operation.
-    List<String> paths = new ArrayList<String>();
+    Set<String> paths = new HashSet<String>();
 
     CRC32 crc32 = new CRC32();
     /*