mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 00:16:16 +00:00
Update ExtractRegistry.java
Change date from YYYY to yyyy, and add locale of US for codacy
This commit is contained in:
parent
6d68578081
commit
2e560a88c6
@ -65,6 +65,7 @@ import java.util.Scanner;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
import static java.util.Locale.US;
|
||||||
import static java.util.TimeZone.getTimeZone;
|
import static java.util.TimeZone.getTimeZone;
|
||||||
import org.openide.util.Lookup;
|
import org.openide.util.Lookup;
|
||||||
import org.sleuthkit.autopsy.ingest.DataSourceIngestModuleProgress;
|
import org.sleuthkit.autopsy.ingest.DataSourceIngestModuleProgress;
|
||||||
@ -1192,7 +1193,7 @@ class ExtractRegistry extends Extract {
|
|||||||
private void parseAdobeMRUList(String regFileName, AbstractFile regFile, BufferedReader reader) throws FileNotFoundException, IOException {
|
private void parseAdobeMRUList(String regFileName, AbstractFile regFile, BufferedReader reader) throws FileNotFoundException, IOException {
|
||||||
List<BlackboardArtifact> bbartifacts = new ArrayList<>();
|
List<BlackboardArtifact> bbartifacts = new ArrayList<>();
|
||||||
String line = reader.readLine();
|
String line = reader.readLine();
|
||||||
SimpleDateFormat adobePluginDateFormat = new SimpleDateFormat("YYYYMMddHHmmssZ", Locale.US);
|
SimpleDateFormat adobePluginDateFormat = new SimpleDateFormat("yyyyMMddHHmmssZ", US);
|
||||||
Long adobeUsedTime = Long.valueOf(0);
|
Long adobeUsedTime = Long.valueOf(0);
|
||||||
while (!line.contains(SECTION_DIVIDER)) {
|
while (!line.contains(SECTION_DIVIDER)) {
|
||||||
line = reader.readLine();
|
line = reader.readLine();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user