Commit 5dd82eed authored by NeoSpb's avatar NeoSpb

core: fix deobfuscation when class is in the root package (package path is empty)

parent 14b90466
...@@ -61,10 +61,15 @@ public class PackageNode { ...@@ -61,10 +61,15 @@ public class PackageNode {
if (cachedPackageFullAlias == null) { if (cachedPackageFullAlias == null) {
Stack<PackageNode> pp = getParentPackages(); Stack<PackageNode> pp = getParentPackages();
StringBuilder result = new StringBuilder(); StringBuilder result = new StringBuilder();
result.append(pp.pop().getAlias());
while (pp.size() > 0) { if (pp.size() > 0) {
result.append(SEPARATOR_CHAR);
result.append(pp.pop().getAlias()); result.append(pp.pop().getAlias());
while (pp.size() > 0) {
result.append(SEPARATOR_CHAR);
result.append(pp.pop().getAlias());
}
} else {
result.append(this.getAlias());
} }
cachedPackageFullAlias = result.toString(); cachedPackageFullAlias = result.toString();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment