mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
fix codacy issues
This commit is contained in:
parent
fad5cd5121
commit
7f5420e305
@ -107,17 +107,16 @@ public final class ImageGalleryController {
|
|||||||
private final HashSetManager hashSetManager;
|
private final HashSetManager hashSetManager;
|
||||||
private final CategoryManager categoryManager;
|
private final CategoryManager categoryManager;
|
||||||
private final DrawableTagsManager tagsManager;
|
private final DrawableTagsManager tagsManager;
|
||||||
private final ReadOnlyLongWrapper filterByDataSourceId = new ReadOnlyLongWrapper(0);
|
|
||||||
|
|
||||||
private ListeningExecutorService dbExecutor;
|
private ListeningExecutorService dbExecutor;
|
||||||
|
|
||||||
private final Case autopsyCase;
|
private final Case autopsyCase;
|
||||||
|
private final SleuthkitCase sleuthKitCase;
|
||||||
|
private final DrawableDB drawableDB;
|
||||||
|
|
||||||
public Case getAutopsyCase() {
|
public Case getAutopsyCase() {
|
||||||
return autopsyCase;
|
return autopsyCase;
|
||||||
}
|
}
|
||||||
private final SleuthkitCase sleuthKitCase;
|
|
||||||
private final DrawableDB drawableDB;
|
|
||||||
|
|
||||||
public ReadOnlyBooleanProperty metaDataCollapsedProperty() {
|
public ReadOnlyBooleanProperty metaDataCollapsedProperty() {
|
||||||
return metaDataCollapsed.getReadOnlyProperty();
|
return metaDataCollapsed.getReadOnlyProperty();
|
||||||
@ -423,6 +422,7 @@ public final class ImageGalleryController {
|
|||||||
|
|
||||||
public ThumbnailCache getThumbsCache() {
|
public ThumbnailCache getThumbsCache() {
|
||||||
return thumbnailCache;
|
return thumbnailCache;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,7 +27,6 @@ import javafx.application.Platform;
|
|||||||
import javax.swing.JOptionPane;
|
import javax.swing.JOptionPane;
|
||||||
import javax.swing.SwingUtilities;
|
import javax.swing.SwingUtilities;
|
||||||
import static org.apache.commons.lang3.StringUtils.isNotBlank;
|
import static org.apache.commons.lang3.StringUtils.isNotBlank;
|
||||||
import org.openide.util.Exceptions;
|
|
||||||
import org.openide.util.NbBundle;
|
import org.openide.util.NbBundle;
|
||||||
import org.sleuthkit.autopsy.casemodule.Case;
|
import org.sleuthkit.autopsy.casemodule.Case;
|
||||||
import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
|
import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
|
||||||
|
@ -65,15 +65,6 @@ public class CategoryManager {
|
|||||||
*/
|
*/
|
||||||
private final DrawableDB drawableDb;
|
private final DrawableDB drawableDb;
|
||||||
|
|
||||||
public CategoryManager(ImageGalleryController controller) {
|
|
||||||
this.controller = controller;
|
|
||||||
this.drawableDb = controller.getDatabase();
|
|
||||||
}
|
|
||||||
|
|
||||||
private ImageGalleryController getController() {
|
|
||||||
return controller;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to distribute CategoryChangeEvents
|
* 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() {
|
synchronized public void invalidateCaches() {
|
||||||
categoryCounts.invalidateAll();
|
categoryCounts.invalidateAll();
|
||||||
catTagNameMap.invalidateAll();
|
catTagNameMap.invalidateAll();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user