提交 d6a468f0 编写于 作者: S Skylot

Don't show not important warnings

上级 69eb57cb
......@@ -91,7 +91,7 @@ public class ClassNode extends AttrNode implements ILoadable {
String fileName = dex.getString(sfIdx);
if(!this.getFullName().contains(fileName.replace(".java", ""))) {
this.getAttributes().add(new SourceFileAttr(fileName));
LOG.info("TODO: move class {} to {} file", this, fileName);
LOG.debug("Class '{}' compiled from '{}'", this, fileName);
}
}
......
package jadx.dex.visitors.regions;
import jadx.Consts;
import jadx.dex.attributes.AttributeFlag;
import jadx.dex.nodes.BlockNode;
import jadx.dex.nodes.IBlock;
......@@ -37,8 +38,19 @@ public class CheckRegions extends AbstractVisitor {
};
DepthRegionTraverser.traverseAll(mth, collectBlocks);
if (mth.getBasicBlocks().size() != blocksInRegions.size())
mth.getAttributes().add(AttributeFlag.INCONSISTENT_CODE);
if (mth.getBasicBlocks().size() != blocksInRegions.size()) {
for (BlockNode block : mth.getBasicBlocks()) {
if (!blocksInRegions.contains(block)) {
if (!block.getInstructions().isEmpty()) {
mth.getAttributes().add(AttributeFlag.INCONSISTENT_CODE);
if (Consts.DEBUG)
LOG.debug("Missing block: {} in {}", block, mth);
else
break;
}
}
}
}
// check loop conditions
IRegionVisitor checkLoops = new AbstractRegionVisitor() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册