mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
7978 change returning new array list to Collections.emptyList()
This commit is contained in:
parent
000b741d87
commit
47d842a3eb
@ -25,8 +25,8 @@ import java.nio.file.Files;
|
||||
import java.text.DateFormat;
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
@ -89,7 +89,7 @@ public final class OtherOccurrences {
|
||||
logger.log(Level.INFO, String.format("Unable to check create CorrelationAttribtueInstance for osAccount %s.", osAccountAddr.get()), ex);
|
||||
}
|
||||
}
|
||||
return new ArrayList<>();
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -20,6 +20,7 @@ package org.sleuthkit.autopsy.centralrepository.datamodel;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
@ -86,7 +87,7 @@ public class CorrelationAttributeUtil {
|
||||
if (artifactTypeID == ARTIFACT_TYPE.TSK_CALLLOG.getTypeID()
|
||||
|| artifactTypeID == ARTIFACT_TYPE.TSK_MESSAGE.getTypeID()
|
||||
|| artifactTypeID == ARTIFACT_TYPE.TSK_CONTACT.getTypeID()) {
|
||||
return new ArrayList<>();
|
||||
return Collections.emptyList();
|
||||
}
|
||||
return CorrelationAttributeUtil.makeCorrAttrsForSearch(artifact);
|
||||
}
|
||||
@ -109,7 +110,7 @@ public class CorrelationAttributeUtil {
|
||||
}
|
||||
|
||||
public static List<CorrelationAttributeInstance> makeCorrAttrsToSave(AnalysisResult file) {
|
||||
return new ArrayList<>();
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
public static List<CorrelationAttributeInstance> makeCorrAttrsToSave(OsAccountInstance osAccountInstance) {
|
||||
@ -354,7 +355,7 @@ public class CorrelationAttributeUtil {
|
||||
/*
|
||||
* Normalize the phone number.
|
||||
*/
|
||||
List<CorrelationAttributeInstance> corrAttrInstances = new ArrayList<>();
|
||||
List<CorrelationAttributeInstance> corrAttrInstances = Collections.emptyList();
|
||||
if (value != null
|
||||
&& CorrelationAttributeNormalizer.isValidPhoneNumber(value)) {
|
||||
value = CorrelationAttributeNormalizer.normalizePhone(value);
|
||||
|
Loading…
x
Reference in New Issue
Block a user