Whitespace fix

This commit is contained in:
Connor Yoh 2025-06-27 17:00:25 +01:00
parent 3444aa6525
commit 62fb5025a9
2 changed files with 6 additions and 8 deletions

View File

@ -308,7 +308,7 @@ public class TempFileCleanupService {
} }
java.util.List<Path> subdirectories = new java.util.ArrayList<>(); java.util.List<Path> subdirectories = new java.util.ArrayList<>();
try (Stream<Path> pathStream = Files.list(directory)) { try (Stream<Path> pathStream = Files.list(directory)) {
pathStream.forEach( pathStream.forEach(
path -> { path -> {
@ -347,7 +347,7 @@ public class TempFileCleanupService {
} }
}); });
} }
for (Path subdirectory : subdirectories) { for (Path subdirectory : subdirectories) {
try { try {
cleanupDirectoryStreaming( cleanupDirectoryStreaming(

View File

@ -9,7 +9,6 @@ import java.util.Map;
import java.util.Set; import java.util.Set;
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap; import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.ConcurrentSkipListSet;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -24,11 +23,10 @@ import lombok.extern.slf4j.Slf4j;
@Component @Component
public class TempFileRegistry { public class TempFileRegistry {
private final ConcurrentMap<Path, Instant> registeredFiles = new ConcurrentHashMap<>(); private final ConcurrentMap<Path, Instant> registeredFiles = new ConcurrentHashMap<>();
private final Set<Path> thirdPartyTempFiles = private final Set<Path> thirdPartyTempFiles =
Collections.newSetFromMap(new ConcurrentHashMap<>()); Collections.newSetFromMap(new ConcurrentHashMap<>());
private final Set<Path> tempDirectories = private final Set<Path> tempDirectories = Collections.newSetFromMap(new ConcurrentHashMap<>());
Collections.newSetFromMap(new ConcurrentHashMap<>());
/** /**
* Register a temporary file with the registry. * Register a temporary file with the registry.