Codeacy cleanup

This commit is contained in:
Andrew Ziehl 2018-05-09 12:46:37 -07:00
parent 5bc8c4bbcf
commit d1fa7c0cd1
2 changed files with 6 additions and 3 deletions

View File

@ -464,7 +464,9 @@ public class DataContentViewerOtherCases extends javax.swing.JPanel implements D
.filter(artifactInstance -> !artifactInstance.getCorrelationCase().getCaseUUID().equals(caseUUID)
|| !artifactInstance.getCorrelationDataSource().getName().equals(dataSourceName)
|| !artifactInstance.getCorrelationDataSource().getDeviceID().equals(deviceId))
.collect(Collectors.toMap(c -> new ArtifactKey(c.getCorrelationDataSource().getDeviceID(), c.getFilePath()), c -> c)));
.collect(Collectors.toMap(
correlationAttr -> new ArtifactKey(correlationAttr.getCorrelationDataSource().getDeviceID(), correlationAttr.getFilePath()),
correlationAttr -> correlationAttr)));
}
if (corAttr.getCorrelationType().getDisplayName().equals("Files")) {
@ -482,6 +484,7 @@ public class DataContentViewerOtherCases extends javax.swing.JPanel implements D
} catch (TskCoreException ex) {
// do nothing.
// @@@ Review this behavior
LOGGER.log(Level.SEVERE, "Exception while querying open case.", ex); // NON-NLS
}
return new HashMap<>(0);

View File

@ -24,8 +24,8 @@ package org.sleuthkit.autopsy.commonfilesearch;
*/
final public class FileInstanceMetadata {
private Long objectId;
private String dataSourceName;
private final Long objectId;
private final String dataSourceName;
/**
* Create meta data required to find an abstract file and build a FileInstanceNode.