|
18 | 18 |
|
19 | 19 | import com.google.common.base.*; |
20 | 20 | import com.google.common.primitives.*; |
| 21 | +import me.grax.jbytemod.JByteMod; |
21 | 22 | import org.objectweb.asm.*; |
22 | 23 | import org.objectweb.asm.tree.*; |
23 | 24 | import org.objectweb.asm.tree.analysis.*; |
24 | 25 | import org.objectweb.asm.tree.analysis.Frame; |
25 | | -import org.slf4j.*; |
26 | 26 |
|
27 | 27 | import java.io.*; |
28 | 28 | import java.util.*; |
@@ -443,17 +443,16 @@ public static String insnsToString(Collection<AbstractInsnNode> insns) { |
443 | 443 |
|
444 | 444 | private static final Supplier<ExecutorService> ASYNC_SERVICE = Suppliers.memoize(Executors::newCachedThreadPool); |
445 | 445 |
|
446 | | - private static final Logger LOGGER = LoggerFactory.getLogger(TransformerHelper.class); |
447 | 446 |
|
448 | 447 | public static Frame<SourceValue>[] analyze(ClassNode classNode, MethodNode methodNode) { |
449 | 448 | Future<Frame<SourceValue>[]> future = ASYNC_SERVICE.get().submit(() -> new Analyzer<>(new SourceInterpreter()).analyze(classNode.name, methodNode)); |
450 | 449 | try { |
451 | 450 | return future.get(10, TimeUnit.SECONDS); |
452 | 451 | } catch (InterruptedException | TimeoutException e) { |
453 | | - LOGGER.debug("timed out while analyzing {} {}{}", classNode.name, methodNode.name, methodNode.desc); |
| 452 | + //JByteMod.LOGGER.debug("timed out while analyzing {} {}{}", classNode.name, methodNode.name, methodNode.desc); |
454 | 453 | return null; |
455 | 454 | } catch (ExecutionException e) { |
456 | | - LOGGER.debug("exception while analyzing {} {}{}", classNode.name, methodNode.name, methodNode.desc, e); |
| 455 | + //LOGGER.debug("exception while analyzing {} {}{}", classNode.name, methodNode.name, methodNode.desc, e); |
457 | 456 | return null; |
458 | 457 | } |
459 | 458 | } |
|
0 commit comments