commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grobme...@apache.org
Subject svn commit: r762852 - /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/changes/ChangeSet.java
Date Tue, 07 Apr 2009 17:01:23 GMT
Author: grobmeier
Date: Tue Apr  7 17:01:23 2009
New Revision: 762852

URL: http://svn.apache.org/viewvc?rev=762852&view=rev
Log:
cleaned up: no need for returning the Set. No need for making a synchronized Set at the moment

Modified:
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/changes/ChangeSet.java

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/changes/ChangeSet.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/changes/ChangeSet.java?rev=762852&r1=762851&r2=762852&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/changes/ChangeSet.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/changes/ChangeSet.java
Tue Apr  7 17:01:23 2009
@@ -20,7 +20,6 @@
 
 import java.io.IOException;
 import java.io.InputStream;
-import java.util.Collections;
 import java.util.Iterator;
 import java.util.LinkedHashSet;
 import java.util.Set;
@@ -32,8 +31,7 @@
 
 public final class ChangeSet {
 
-    private final Set changes = Collections
-            .synchronizedSet(new LinkedHashSet());
+    private final Set changes = new LinkedHashSet();
 
     public void delete(final String pFilename) {
         addDeletion(new Change(pFilename));
@@ -47,10 +45,6 @@
         changes.add(new Change(pEntry, pInput));
     }
 
-    public Set asSet() {
-        return changes;
-    }
-
     public void perform(ArchiveInputStream in, ArchiveOutputStream out)
             throws IOException {
         for (Iterator it = changes.iterator(); it.hasNext();) {



Mime
View raw message