From 7bf0f5070e977d716fbce9309266bb7c26be0a74 Mon Sep 17 00:00:00 2001 From: Stefan Lay Date: Tue, 30 Nov 2010 11:05:42 +0100 Subject: [PATCH] Use the Set interface in declarations and as return value Change-Id: Ib273c4980036f75bd4dad3ffe1c29a37b2df932a Signed-off-by: Stefan Lay --- .../src/org/eclipse/jgit/lib/IndexDiff.java | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/IndexDiff.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/IndexDiff.java index f5aaa5e8f..b19e77825 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/IndexDiff.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/IndexDiff.java @@ -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 added = new HashSet(); + private Set added = new HashSet(); - private HashSet changed = new HashSet(); + private Set changed = new HashSet(); - private HashSet removed = new HashSet(); + private Set removed = new HashSet(); - private HashSet missing = new HashSet(); + private Set missing = new HashSet(); - private HashSet modified = new HashSet(); + private Set modified = new HashSet(); - private HashSet untracked = new HashSet(); + private Set untracked = new HashSet(); /** * Construct an IndexDiff @@ -243,42 +244,42 @@ public class IndexDiff { /** * @return list of files added to the index, not in the tree */ - public HashSet getAdded() { + public Set getAdded() { return added; } /** * @return list of files changed from tree to index */ - public HashSet getChanged() { + public Set getChanged() { return changed; } /** * @return list of files removed from index, but in tree */ - public HashSet getRemoved() { + public Set getRemoved() { return removed; } /** * @return list of files in index, but not filesystem */ - public HashSet getMissing() { + public Set getMissing() { return missing; } /** * @return list of files on modified on disk relative to the index */ - public HashSet getModified() { + public Set getModified() { return modified; } /** * @return list of files on modified on disk relative to the index */ - public HashSet getUntracked() { + public Set getUntracked() { return untracked; }