[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
This commit is contained in:
parent
ebdf71c117
commit
b4f4ae472a
|
@ -18,8 +18,8 @@
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.time.Instant;
|
import java.time.Instant;
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import org.eclipse.jgit.api.errors.FilterFailedException;
|
import org.eclipse.jgit.api.errors.FilterFailedException;
|
||||||
import org.eclipse.jgit.api.errors.GitAPIException;
|
import org.eclipse.jgit.api.errors.GitAPIException;
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
*/
|
*/
|
||||||
public class AddCommand extends GitCommand<DirCache> {
|
public class AddCommand extends GitCommand<DirCache> {
|
||||||
|
|
||||||
private Collection<String> filepatterns;
|
private List<String> filepatterns;
|
||||||
|
|
||||||
private WorkingTreeIterator workingTreeIterator;
|
private WorkingTreeIterator workingTreeIterator;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue