Skip to content

Commit 9df1e7f

Browse files
committed
Better internal typing
1 parent 12d8492 commit 9df1e7f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/apache/commons/io/FileCleaningTracker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
import java.lang.ref.ReferenceQueue;
2222
import java.nio.file.Path;
2323
import java.util.ArrayList;
24-
import java.util.Collection;
2524
import java.util.Collections;
2625
import java.util.HashSet;
2726
import java.util.List;
2827
import java.util.Objects;
28+
import java.util.Set;
2929

3030
/**
3131
* Keeps track of files awaiting deletion, and deletes them when an associated
@@ -140,7 +140,7 @@ public String getPath() {
140140
/**
141141
* Collection of {@link Tracker} instances in existence.
142142
*/
143-
final Collection<Tracker> trackers = Collections.synchronizedSet(new HashSet<>()); // synchronized
143+
final Set<Tracker> trackers = Collections.synchronizedSet(new HashSet<>()); // synchronized
144144

145145
/**
146146
* Collection of File paths that failed to delete.

0 commit comments

Comments
 (0)