mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 07:56:16 +00:00
Style fixes
This commit is contained in:
parent
afa20497d6
commit
23f41b507d
@ -808,7 +808,7 @@ class SevenZipExtractor {
|
|||||||
return unpackSuccessful;
|
return unpackSuccessful;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Charset detectFilenamesCharset(ArrayList<byte[]> byteDatas) {
|
private Charset detectFilenamesCharset(List<byte[]> byteDatas) {
|
||||||
Charset detectedCharset = null;
|
Charset detectedCharset = null;
|
||||||
CharsetDetector charsetDetector = new CharsetDetector();
|
CharsetDetector charsetDetector = new CharsetDetector();
|
||||||
int byteSum = 0;
|
int byteSum = 0;
|
||||||
@ -830,11 +830,9 @@ class SevenZipExtractor {
|
|||||||
}
|
}
|
||||||
charsetDetector.setText(allBytes);
|
charsetDetector.setText(allBytes);
|
||||||
CharsetMatch cm = charsetDetector.detect();
|
CharsetMatch cm = charsetDetector.detect();
|
||||||
if (cm.getConfidence() >= 90) {
|
if (cm.getConfidence() >= 90 && Charset.isSupported(cm.getName())) {
|
||||||
if (Charset.isSupported(cm.getName())) {
|
|
||||||
detectedCharset = Charset.forName(cm.getName());
|
detectedCharset = Charset.forName(cm.getName());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return detectedCharset;
|
return detectedCharset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user