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
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;
*/
public class AddCommand extends GitCommand<DirCache> {
- private Collection<String> filepatterns;
+ private List<String> filepatterns;
private WorkingTreeIterator workingTreeIterator;