DottedChains in identifier deobfuscation

This commit is contained in:
honfika@gmail.com
2015-07-16 13:20:23 +02:00
parent 36e7bdbaee
commit a911196575
9 changed files with 97 additions and 103 deletions

View File

@@ -66,6 +66,14 @@ public class DottedChain implements Serializable {
private final int hash;
public static final DottedChain parse(String name) {
if (name == null || name.isEmpty()) {
return DottedChain.EMPTY;
} else {
return new DottedChain(name.split("\\."));
}
}
public DottedChain(List<String> parts) {
length = parts.size();
this.parts = parts.toArray(new String[length]);