add comments

This commit is contained in:
Karl Mortensen 2015-12-03 16:58:40 -05:00
parent 25700ce622
commit af3d429386

View File

@ -394,6 +394,8 @@ class SevenZipExtractor {
String ext = archName.substring(dotI); String ext = archName.substring(dotI);
int colonIndex = ext.lastIndexOf(":"); int colonIndex = ext.lastIndexOf(":");
if (colonIndex != -1) { if (colonIndex != -1) {
// If alternate data stream is found, fix the name
// so Windows doesn't choke on the colon character.
useName = base + ext.substring(0, colonIndex); useName = base + ext.substring(0, colonIndex);
} else { } else {
switch (ext) { switch (ext) {