mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
5423 address codacy complaints
This commit is contained in:
parent
b1f8f630be
commit
8aba6c9d9e
@ -116,7 +116,7 @@ class FileSearch {
|
||||
|
||||
// Sort and group the results
|
||||
searchResults.sortGroupsAndFiles();
|
||||
LinkedHashMap<String, List<ResultFile>> resultHashMap = searchResults.toLinkedHashMap();
|
||||
Map<String, List<ResultFile>> resultHashMap = searchResults.toLinkedHashMap();
|
||||
for (String groupName : resultHashMap.keySet()) {
|
||||
groupCache.put(groupName, resultHashMap.get(groupName));
|
||||
}
|
||||
@ -251,7 +251,7 @@ class FileSearch {
|
||||
// Collect everything in the search results
|
||||
SearchResults searchResults = new SearchResults(groupSortingType, groupAttributeType, fileSortingMethod);
|
||||
searchResults.add(resultFiles);
|
||||
LinkedHashMap<String, List<ResultFile>> resultHashMap = searchResults.toLinkedHashMap();
|
||||
Map<String, List<ResultFile>> resultHashMap = searchResults.toLinkedHashMap();
|
||||
for (String groupName : resultHashMap.keySet()) {
|
||||
groupCache.put(groupName, resultHashMap.get(groupName));
|
||||
}
|
||||
|
@ -43,6 +43,10 @@
|
||||
</Layout>
|
||||
<SubComponents>
|
||||
<Container class="javax.swing.JPanel" name="thumbnailPanel">
|
||||
<AuxValues>
|
||||
<AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="true"/>
|
||||
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
|
||||
</AuxValues>
|
||||
|
||||
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/>
|
||||
<SubComponents>
|
||||
|
@ -49,7 +49,7 @@ public class ImageThumbnailPanel extends javax.swing.JPanel implements ListCellR
|
||||
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
|
||||
private void initComponents() {
|
||||
|
||||
thumbnailPanel = new javax.swing.JPanel();
|
||||
javax.swing.JPanel thumbnailPanel = new javax.swing.JPanel();
|
||||
thumbnailLabel = new javax.swing.JLabel();
|
||||
fileSizeLabel = new javax.swing.JLabel();
|
||||
countLabel = new javax.swing.JLabel();
|
||||
@ -87,7 +87,6 @@ public class ImageThumbnailPanel extends javax.swing.JPanel implements ListCellR
|
||||
private javax.swing.JLabel countLabel;
|
||||
private javax.swing.JLabel fileSizeLabel;
|
||||
private javax.swing.JLabel thumbnailLabel;
|
||||
private javax.swing.JPanel thumbnailPanel;
|
||||
// End of variables declaration//GEN-END:variables
|
||||
|
||||
@NbBundle.Messages({"# {0} - fileSize",
|
||||
|
@ -18,6 +18,8 @@
|
||||
<SubComponents>
|
||||
<Container class="javax.swing.JScrollPane" name="thumbnailListScrollPane">
|
||||
<AuxValues>
|
||||
<AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="true"/>
|
||||
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
|
||||
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
|
||||
</AuxValues>
|
||||
<Constraints>
|
||||
|
@ -50,7 +50,7 @@ public class ImageThumbnailViewer extends javax.swing.JPanel {
|
||||
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
|
||||
private void initComponents() {
|
||||
|
||||
thumbnailListScrollPane = new javax.swing.JScrollPane();
|
||||
javax.swing.JScrollPane thumbnailListScrollPane = new javax.swing.JScrollPane();
|
||||
thumbnailList = new javax.swing.JList<>();
|
||||
|
||||
setLayout(new java.awt.BorderLayout());
|
||||
@ -68,7 +68,6 @@ public class ImageThumbnailViewer extends javax.swing.JPanel {
|
||||
|
||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||
private javax.swing.JList<ImageThumbnailWrapper> thumbnailList;
|
||||
private javax.swing.JScrollPane thumbnailListScrollPane;
|
||||
// End of variables declaration//GEN-END:variables
|
||||
|
||||
/**
|
||||
|
@ -238,10 +238,18 @@
|
||||
<Dimension value="[777, 125]"/>
|
||||
</Property>
|
||||
</Properties>
|
||||
<AuxValues>
|
||||
<AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="true"/>
|
||||
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
|
||||
</AuxValues>
|
||||
|
||||
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout"/>
|
||||
<SubComponents>
|
||||
<Container class="javax.swing.JPanel" name="instancesPanel">
|
||||
<AuxValues>
|
||||
<AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="true"/>
|
||||
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
|
||||
</AuxValues>
|
||||
<Constraints>
|
||||
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout$JSplitPaneConstraintsDescription">
|
||||
<JSplitPaneConstraints position="right"/>
|
||||
@ -269,6 +277,8 @@
|
||||
<SubComponents>
|
||||
<Container class="javax.swing.JScrollPane" name="instancesScrollPane">
|
||||
<AuxValues>
|
||||
<AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="true"/>
|
||||
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
|
||||
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
|
||||
</AuxValues>
|
||||
|
||||
|
@ -313,9 +313,9 @@ public class ResultsPanel extends javax.swing.JPanel {
|
||||
javax.swing.JLabel gotoPageLabel = new javax.swing.JLabel();
|
||||
gotoPageField = new javax.swing.JTextField();
|
||||
javax.swing.JLabel pageSizeLabel = new javax.swing.JLabel();
|
||||
resultsSplitPane = new javax.swing.JSplitPane();
|
||||
instancesPanel = new javax.swing.JPanel();
|
||||
instancesScrollPane = new javax.swing.JScrollPane();
|
||||
javax.swing.JSplitPane resultsSplitPane = new javax.swing.JSplitPane();
|
||||
javax.swing.JPanel instancesPanel = new javax.swing.JPanel();
|
||||
javax.swing.JScrollPane instancesScrollPane = new javax.swing.JScrollPane();
|
||||
instancesList = new javax.swing.JList<>();
|
||||
resultsViewerPanel = new javax.swing.JPanel();
|
||||
|
||||
@ -540,13 +540,10 @@ public class ResultsPanel extends javax.swing.JPanel {
|
||||
private javax.swing.JLabel currentPageLabel;
|
||||
private javax.swing.JTextField gotoPageField;
|
||||
private javax.swing.JList<AbstractFile> instancesList;
|
||||
private javax.swing.JPanel instancesPanel;
|
||||
private javax.swing.JScrollPane instancesScrollPane;
|
||||
private javax.swing.JButton nextPageButton;
|
||||
private javax.swing.JSpinner pageSizeSpinner;
|
||||
private javax.swing.JPanel pagingPanel;
|
||||
private javax.swing.JButton previousPageButton;
|
||||
private javax.swing.JSplitPane resultsSplitPane;
|
||||
private javax.swing.JPanel resultsViewerPanel;
|
||||
// End of variables declaration//GEN-END:variables
|
||||
|
||||
|
@ -150,8 +150,8 @@ class SearchResults {
|
||||
*
|
||||
* @return the grouped and sorted results
|
||||
*/
|
||||
LinkedHashMap<String, List<ResultFile>> toLinkedHashMap() throws FileSearchException {
|
||||
LinkedHashMap<String, List<ResultFile>> map = new LinkedHashMap<>();
|
||||
Map<String, List<ResultFile>> toLinkedHashMap() throws FileSearchException {
|
||||
Map<String, List<ResultFile>> map = new LinkedHashMap<>();
|
||||
|
||||
// Sort the groups and files
|
||||
sortGroupsAndFiles();
|
||||
|
Loading…
x
Reference in New Issue
Block a user