[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:
Matthias Sohn 2023-09-16 22:19:41 +02:00
parent ebdf71c117
commit b4f4ae472a
1 changed files with 2 additions and 2 deletions

View File

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