code cleanup

This commit is contained in:
Brian Sweeney 2018-05-25 08:40:07 -06:00
parent 16a2b2770d
commit db341a9cb0

View File

@ -37,9 +37,9 @@ import static org.sleuthkit.autopsy.timeline.datamodel.eventtype.ArtifactEventTy
import org.sleuthkit.datamodel.HashUtility;
import org.sleuthkit.datamodel.TskCoreException;
/**
* Provides logic for selecting common files from all data sources and all cases in the Central Repo.
* Provides logic for selecting common files from all data sources and all cases
* in the Central Repo.
*/
public abstract class EamDbCommonFilesAlgorithm extends CommonFilesMetadataBuilder {
@ -48,12 +48,14 @@ public abstract class EamDbCommonFilesAlgorithm extends CommonFilesMetadataBuil
private final EamDb dbManager;
/**
* Implements the algorithm for getting common files across all data
* sources and all cases. Can filter on mime types conjoined by logical AND.
* Implements the algorithm for getting common files across all data sources
* and all cases. Can filter on mime types conjoined by logical AND.
*
* @param dataSourceIdMap a map of obj_id to datasource name
* @param filterByMediaMimeType match only on files whose mime types can be broadly categorized as media types
* @param filterByDocMimeType match only on files whose mime types can be broadly categorized as document types
* @param filterByMediaMimeType match only on files whose mime types can be
* broadly categorized as media types
* @param filterByDocMimeType match only on files whose mime types can be
* broadly categorized as document types
*
* @throws EamDbException
*/
@ -142,8 +144,8 @@ public abstract class EamDbCommonFilesAlgorithm extends CommonFilesMetadataBuil
}
protected CorrelationCase getCorrelationCaseFromId(int correlationCaseId) throws EamDbException, Exception {
for(CorrelationCase cCase : this.dbManager.getCases()){
if(cCase.getID() == correlationCaseId){
for (CorrelationCase cCase : this.dbManager.getCases()) {
if (cCase.getID() == correlationCaseId) {
return cCase;
}
}