fix jad problem under jdk6/7. close #851

This commit is contained in:
hengyunabc
2019-09-18 15:00:55 +08:00
parent 7180e03a3b
commit 59df82731c
@@ -1,5 +1,6 @@
package com.taobao.arthas.core.util;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
@@ -57,7 +58,9 @@ public class Decompiler {
}
CfrDriver driver = new CfrDriver.Builder().withOptions(options).withOutputSink(mySink).build();
driver.analyse(Collections.singletonList(classFilePath));
List<String> toAnalyse = new ArrayList<String>();
toAnalyse.add(classFilePath);
driver.analyse(toAnalyse);
return result.toString();
}