mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 17:06:16 +00:00
Fixed codacy issues
This commit is contained in:
parent
f6093066a9
commit
b7ef4bec44
@ -136,11 +136,6 @@ public final class GeolocationTopComponent extends TopComponent {
|
|||||||
super.componentOpened();
|
super.componentOpened();
|
||||||
WindowManager.getDefault().setTopComponentFloating(this, true);
|
WindowManager.getDefault().setTopComponentFloating(this, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void open() {
|
|
||||||
super.open();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the state of the refresh panel at the top of the mapPanel.
|
* Set the state of the refresh panel at the top of the mapPanel.
|
||||||
@ -165,8 +160,6 @@ public final class GeolocationTopComponent extends TopComponent {
|
|||||||
SwingWorker<List<Waypoint>, Waypoint> worker = new SwingWorker<List<Waypoint>, Waypoint>() {
|
SwingWorker<List<Waypoint>, Waypoint> worker = new SwingWorker<List<Waypoint>, Waypoint>() {
|
||||||
@Override
|
@Override
|
||||||
protected List<Waypoint> doInBackground() throws Exception {
|
protected List<Waypoint> doInBackground() throws Exception {
|
||||||
List<Waypoint> waypoints = new ArrayList<>();
|
|
||||||
|
|
||||||
Case currentCase = Case.getCurrentCaseThrows();
|
Case currentCase = Case.getCurrentCaseThrows();
|
||||||
|
|
||||||
return MapWaypoint.getWaypoints(currentCase.getSleuthkitCase());
|
return MapWaypoint.getWaypoints(currentCase.getSleuthkitCase());
|
||||||
|
@ -39,12 +39,12 @@ import org.jxmapviewer.viewer.WaypointPainter;
|
|||||||
/**
|
/**
|
||||||
* Main panel with the JJXMapViewer object and its basic controls.
|
* Main panel with the JJXMapViewer object and its basic controls.
|
||||||
*/
|
*/
|
||||||
public class MapPanel extends javax.swing.JPanel {
|
final class MapPanel extends javax.swing.JPanel {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private boolean zoomChanging = false;
|
private boolean zoomChanging;
|
||||||
private boolean sliderReversed = false;
|
private final boolean sliderReversed;
|
||||||
|
|
||||||
// Using a DefaultListModel to store the way points because we get
|
// Using a DefaultListModel to store the way points because we get
|
||||||
// a lot of functionality for free, like listeners.
|
// a lot of functionality for free, like listeners.
|
||||||
@ -53,8 +53,11 @@ public class MapPanel extends javax.swing.JPanel {
|
|||||||
/**
|
/**
|
||||||
* Creates new form MapPanel
|
* Creates new form MapPanel
|
||||||
*/
|
*/
|
||||||
public MapPanel() {
|
MapPanel() {
|
||||||
waypointListModel = new DefaultListModel<>();
|
waypointListModel = new DefaultListModel<>();
|
||||||
|
sliderReversed = false;
|
||||||
|
zoomChanging = false;
|
||||||
|
|
||||||
initComponents();
|
initComponents();
|
||||||
initMap();
|
initMap();
|
||||||
}
|
}
|
||||||
|
@ -26,12 +26,14 @@ import javax.swing.JPanel;
|
|||||||
* due to new artifacts.
|
* due to new artifacts.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
class RefreshPanel extends JPanel {
|
final class RefreshPanel extends JPanel {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates new form RefreshPanel
|
* Creates new form RefreshPanel
|
||||||
*/
|
*/
|
||||||
public RefreshPanel() {
|
RefreshPanel() {
|
||||||
initComponents();
|
initComponents();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user