PMD warning

This commit is contained in:
Clément Fournier committed 2022-03-05 19:45:28 +01:00
1 parent 6349f134a7
commit 7f184f5a98
1 file changed
+1 -1
@@ -368,7 +368,7 @@ public final class FileCollector implements AutoCloseable {
* Remove all files collected by the given collector from this one.
*/
public void exclude(FileCollector excludeCollector) {
HashSet<TextFile> toExclude = new HashSet<>(excludeCollector.allFilesToProcess);
Set<TextFile> toExclude = new HashSet<>(excludeCollector.allFilesToProcess);
for (Iterator<TextFile> iterator = allFilesToProcess.iterator(); iterator.hasNext();) {
TextFile file = iterator.next();
if (toExclude.contains(file)) {