PMD warning
This commit is contained in:
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)) {
|
||||
|
||||
Reference in new issue
Block a user