1
0
mirror of https://github.com/elisspace/autopsy.git synced 2026-09-03 22:39:56 +00:00

3779: Add comments for the empty method body.

This commit is contained in:
U-BASIS\zhaohui
2018-05-10 14:52:46 -04:00
parent 4b3ec5b51b
commit 6df34a430d
2 changed files with 7 additions and 5 deletions

View File

@@ -60,6 +60,7 @@ class DataSourceFilter extends AbstractFileSearchFilter<DataSourcePanel> {
@Override
public void addActionListener(ActionListener lis) {
//Unused by now
}
@Override

View File

@@ -61,6 +61,7 @@ public class DataSourcePanel extends javax.swing.JPanel {
@Override
public void mouseDragged(MouseEvent evt) {
//Unused by now
}
@Override
@@ -80,7 +81,7 @@ public class DataSourcePanel extends javax.swing.JPanel {
* @return The list of data source name
*/
private List<String> getDataSourceArray() {
List<String> dataSourceList = new ArrayList<>();
List<String> dsList = new ArrayList<>();
try {
Case currentCase = Case.getCurrentCaseThrows();
SleuthkitCase tskDb = currentCase.getSleuthkitCase();
@@ -92,14 +93,14 @@ public class DataSourcePanel extends javax.swing.JPanel {
String displayName = dataSourceFullName.getName();
dataSourceMap.put(ds.getId(), displayName);
toolTipList.add(dsName);
dataSourceList.add(displayName);
dsList.add(displayName);
}
} catch (NoCurrentCaseException ex) {
logger.log(Level.SEVERE, "Unable to get current open case.", ex);
} catch (TskCoreException ex) {
logger.log(Level.SEVERE, "Failed to get data source info from database.", ex);
}
return dataSourceList;
return dsList;
}
/**
@@ -128,9 +129,9 @@ public class DataSourcePanel extends javax.swing.JPanel {
}
/**
* Enable the dataSourceList and dataSourceNoteLable if the dataSourceCheckBox is checked.
* Enable the dsList and dataSourceNoteLable if the dataSourceCheckBox is checked.
*/
void setComponentsEnabled() {
final void setComponentsEnabled() {
boolean enabled = this.isSelected();
this.dataSourceList.setEnabled(enabled);
this.dataSourceNoteLabel.setEnabled(enabled);