mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
fix jad problem under jdk6/7. close #851
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user