Don't show not important warnings

This commit is contained in:
Skylot
2013-06-17 23:06:18 +04:00
parent 69eb57cbd7
commit d6a468f0fc
2 changed files with 15 additions and 3 deletions
+1 -1
View File
@@ -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);
}
}
@@ -1,5 +1,6 @@
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() {