]> source.dussan.org Git - jgit.git/commitdiff
Use the Set interface in declarations and as return value 71/1971/1
authorStefan Lay <stefan.lay@sap.com>
Tue, 30 Nov 2010 10:05:42 +0000 (11:05 +0100)
committerStefan Lay <stefan.lay@sap.com>
Tue, 30 Nov 2010 10:05:42 +0000 (11:05 +0100)
Change-Id: Ib273c4980036f75bd4dad3ffe1c29a37b2df932a
Signed-off-by: Stefan Lay <stefan.lay@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/lib/IndexDiff.java

index f5aaa5e8f8cca3b0b481cdeb1f52c9e0938c4e36..b19e7782596f0659eb231c7f481b445ca2a4e7df 100644 (file)
@@ -49,6 +49,7 @@ import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.HashSet;
+import java.util.Set;
 
 import org.eclipse.jgit.dircache.DirCache;
 import org.eclipse.jgit.dircache.DirCacheIterator;
@@ -90,17 +91,17 @@ public class IndexDiff {
 
        private final WorkingTreeIterator initialWorkingTreeIterator;
 
-       private HashSet<String> added = new HashSet<String>();
+       private Set<String> added = new HashSet<String>();
 
-       private HashSet<String> changed = new HashSet<String>();
+       private Set<String> changed = new HashSet<String>();
 
-       private HashSet<String> removed = new HashSet<String>();
+       private Set<String> removed = new HashSet<String>();
 
-       private HashSet<String> missing = new HashSet<String>();
+       private Set<String> missing = new HashSet<String>();
 
-       private HashSet<String> modified = new HashSet<String>();
+       private Set<String> modified = new HashSet<String>();
 
-       private HashSet<String> untracked = new HashSet<String>();
+       private Set<String> untracked = new HashSet<String>();
 
        /**
         * Construct an IndexDiff
@@ -243,42 +244,42 @@ public class IndexDiff {
        /**
         * @return list of files added to the index, not in the tree
         */
-       public HashSet<String> getAdded() {
+       public Set<String> getAdded() {
                return added;
        }
 
        /**
         * @return list of files changed from tree to index
         */
-       public HashSet<String> getChanged() {
+       public Set<String> getChanged() {
                return changed;
        }
 
        /**
         * @return list of files removed from index, but in tree
         */
-       public HashSet<String> getRemoved() {
+       public Set<String> getRemoved() {
                return removed;
        }
 
        /**
         * @return list of files in index, but not filesystem
         */
-       public HashSet<String> getMissing() {
+       public Set<String> getMissing() {
                return missing;
        }
 
        /**
         * @return list of files on modified on disk relative to the index
         */
-       public HashSet<String> getModified() {
+       public Set<String> getModified() {
                return modified;
        }
 
        /**
         * @return list of files on modified on disk relative to the index
         */
-       public HashSet<String> getUntracked() {
+       public Set<String> getUntracked() {
                return untracked;
        }