refactor(library): remove checked IOException
This commit is contained in:
committed by
Aditya Chandel
parent
395fcca80d
commit
f084bb1da6
+2
-2
@@ -63,7 +63,7 @@ public class LibraryProcessingService {
|
|||||||
notificationService.sendMessage(Topic.LOG, createLogNotification("Finished refreshing library: " + libraryEntity.getName()));
|
notificationService.sendMessage(Topic.LOG, createLogNotification("Finished refreshing library: " + libraryEntity.getName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static List<Long> detectDeletedBookIds(List<LibraryFile> libraryFiles, LibraryEntity libraryEntity) throws IOException {
|
public static List<Long> detectDeletedBookIds(List<LibraryFile> libraryFiles, LibraryEntity libraryEntity) {
|
||||||
Set<String> currentFileNames = libraryFiles.stream()
|
Set<String> currentFileNames = libraryFiles.stream()
|
||||||
.map(LibraryFile::getFileName)
|
.map(LibraryFile::getFileName)
|
||||||
.collect(Collectors.toSet());
|
.collect(Collectors.toSet());
|
||||||
@@ -75,7 +75,7 @@ public class LibraryProcessingService {
|
|||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static List<LibraryFile> detectNewBookPaths(List<LibraryFile> libraryFiles, LibraryEntity libraryEntity) throws IOException {
|
public static List<LibraryFile> detectNewBookPaths(List<LibraryFile> libraryFiles, LibraryEntity libraryEntity) {
|
||||||
Set<String> existingFileNames = libraryEntity.getBookEntities().stream()
|
Set<String> existingFileNames = libraryEntity.getBookEntities().stream()
|
||||||
.map(BookEntity::getFileName)
|
.map(BookEntity::getFileName)
|
||||||
.collect(Collectors.toSet());
|
.collect(Collectors.toSet());
|
||||||
|
|||||||
Reference in New Issue
Block a user