Use FastFile internally but do not expose to outside code that expects File objects

@see https://www.filebot.net/forums/viewtopic.php?f=8&t=5306
This commit is contained in:
Reinhard Pointner 2018-01-19 10:44:18 +01:00
parent 090e575d36
commit d314efb450
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ public class AutoDetection {
try {
stream(files).collect(toMap(f -> f, f -> workerThreadPool.submit(() -> detectGroup(f)))).forEach((file, group) -> {
try {
groups.computeIfAbsent(group.get(), k -> new TreeSet<File>()).add(file);
groups.computeIfAbsent(group.get(), k -> new TreeSet<File>()).add(new File(file.getPath())); // use FastFile internally but do not expose to outside code that expects File objects
} catch (Exception e) {
debug.log(Level.SEVERE, e.getMessage(), e);
}