diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2023-09-16 22:19:41 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2023-09-22 23:31:28 +0200 |
commit | b4f4ae472ab68ac506e634121b20e68931273440 (patch) | |
tree | 5e0b1e7e8054a94a498371987273237949a0a397 /org.eclipse.jgit/src/org/eclipse/jgit/api/AddCommand.java | |
parent | ebdf71c1176ddbf81305d57296f97ee2e653be93 (diff) | |
download | jgit-b4f4ae472ab68ac506e634121b20e68931273440.tar.gz jgit-b4f4ae472ab68ac506e634121b20e68931273440.zip |
[errorprone] AddCommand#filepattern: use a more specific type
Variable type can use a more specific type to convey more information to
callers.
private Collection<String> filepatterns;
^
(see https://errorprone.info/bugpattern/PreferredInterfaceType)
Change-Id: I68b74de65aba3bb849ef508d7dcdd8b85b0ab100
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/api/AddCommand.java')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/api/AddCommand.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/AddCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/AddCommand.java index cb32324043..abad766e40 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/AddCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/AddCommand.java @@ -18,8 +18,8 @@ import static org.eclipse.jgit.lib.FileMode.TYPE_TREE; import java.io.IOException; import java.io.InputStream; import java.time.Instant; -import java.util.Collection; import java.util.LinkedList; +import java.util.List; import org.eclipse.jgit.api.errors.FilterFailedException; import org.eclipse.jgit.api.errors.GitAPIException; @@ -55,7 +55,7 @@ import org.eclipse.jgit.treewalk.filter.TreeFilter; */ public class AddCommand extends GitCommand<DirCache> { - private Collection<String> filepatterns; + private List<String> filepatterns; private WorkingTreeIterator workingTreeIterator; |