From 89f7048a03f2a533c62cc7961b7d185a760bf5e0 Mon Sep 17 00:00:00 2001 From: Liu Tao Date: Tue, 4 Apr 2017 16:33:04 +0800 Subject: [PATCH] fix that default pkg's method count is at most 1 --- src/info/persistent/dex/DexMethodCounts.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/info/persistent/dex/DexMethodCounts.java b/src/info/persistent/dex/DexMethodCounts.java index 3862c2c..248f3e7 100644 --- a/src/info/persistent/dex/DexMethodCounts.java +++ b/src/info/persistent/dex/DexMethodCounts.java @@ -49,6 +49,8 @@ public void generate(DexData dexData, boolean includeClasses, String packageFilt String name = packageNamePieces[i]; if (packageNode.children.containsKey(name)) { packageNode = packageNode.children.get(name); + } else if (packageNode.children.containsKey("") && "".equals(name)) { + packageNode = packageNode.children.get(""); } else { Node childPackageNode = new Node(); if (name.length() == 0) {