mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
More code cleanup
This commit is contained in:
@@ -78,9 +78,9 @@ public abstract class StorageReaderFile<T> extends StorageReaderBase<T> {
|
||||
|
||||
idx++;
|
||||
String newKey = keySelector.apply(item);
|
||||
if( result.containsKey(newKey))
|
||||
if (result.containsKey(newKey)) {
|
||||
System.err.println("StorageReader: Overwriting an object with key " + newKey);
|
||||
|
||||
}
|
||||
result.put(newKey, item);
|
||||
}
|
||||
|
||||
|
||||
@@ -92,9 +92,9 @@ public abstract class StorageReaderFolder<T> extends StorageReaderBase<T> {
|
||||
throw new RuntimeException(msg);
|
||||
}
|
||||
String newKey = keySelector.apply(newDeck);
|
||||
if( result.containsKey(newKey))
|
||||
if (result.containsKey(newKey)) {
|
||||
System.err.println("StorageReader: Overwriting an object with key " + newKey);
|
||||
|
||||
}
|
||||
result.put(newKey, newDeck);
|
||||
} catch (final NoSuchElementException ex) {
|
||||
final String message = String.format("%s failed to load because ---- %s", file.getName(), ex.getMessage());
|
||||
@@ -128,7 +128,6 @@ public abstract class StorageReaderFolder<T> extends StorageReaderBase<T> {
|
||||
@Override
|
||||
public Iterable<File> getSubFolders() {
|
||||
File[] list = this.directory.listFiles(new FileFilter() {
|
||||
|
||||
@Override
|
||||
public boolean accept(File file) {
|
||||
return file.isDirectory() && !file.isHidden();
|
||||
|
||||
Reference in New Issue
Block a user