fix codacy issues

This commit is contained in:
millmanorama 2018-09-17 12:55:32 +02:00
parent fad5cd5121
commit 7f5420e305
3 changed files with 12 additions and 13 deletions

View File

@ -107,17 +107,16 @@ public final class ImageGalleryController {
private final HashSetManager hashSetManager;
private final CategoryManager categoryManager;
private final DrawableTagsManager tagsManager;
private final ReadOnlyLongWrapper filterByDataSourceId = new ReadOnlyLongWrapper(0);
private ListeningExecutorService dbExecutor;
private final Case autopsyCase;
private final SleuthkitCase sleuthKitCase;
private final DrawableDB drawableDB;
public Case getAutopsyCase() {
return autopsyCase;
}
private final SleuthkitCase sleuthKitCase;
private final DrawableDB drawableDB;
public ReadOnlyBooleanProperty metaDataCollapsedProperty() {
return metaDataCollapsed.getReadOnlyProperty();
@ -423,6 +422,7 @@ public final class ImageGalleryController {
public ThumbnailCache getThumbsCache() {
return thumbnailCache;
}
/**

View File

@ -27,7 +27,6 @@ import javafx.application.Platform;
import javax.swing.JOptionPane;
import javax.swing.SwingUtilities;
import static org.apache.commons.lang3.StringUtils.isNotBlank;
import org.openide.util.Exceptions;
import org.openide.util.NbBundle;
import org.sleuthkit.autopsy.casemodule.Case;
import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;

View File

@ -65,15 +65,6 @@ public class CategoryManager {
*/
private final DrawableDB drawableDb;
public CategoryManager(ImageGalleryController controller) {
this.controller = controller;
this.drawableDb = controller.getDatabase();
}
private ImageGalleryController getController() {
return controller;
}
/**
* Used to distribute CategoryChangeEvents
*/
@ -102,6 +93,15 @@ public class CategoryManager {
}
});
public CategoryManager(ImageGalleryController controller) {
this.controller = controller;
this.drawableDb = controller.getDatabase();
}
private ImageGalleryController getController() {
return controller;
}
synchronized public void invalidateCaches() {
categoryCounts.invalidateAll();
catTagNameMap.invalidateAll();