fixed naming of weak identifiers

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@337 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent cb5ea77fb4
commit d2e21dcf59
  1. 8
      jode/jode/obfuscator/Identifier.java

@ -180,9 +180,9 @@ public abstract class Identifier {
newAlias.setCharAt(pos, (char)(c+1)); newAlias.setCharAt(pos, (char)(c+1));
break okay; break okay;
} }
newAlias.setCharAt(pos, '0'); newAlias.setCharAt(pos, pos == 0 ? 'A': '0');
} else { } else {
while (c++ < 255) { while (c++ < 126) {
if (Character.isJavaIdentifierPart(c)) { if (Character.isJavaIdentifierPart(c)) {
newAlias.setCharAt(pos, c); newAlias.setCharAt(pos, c);
break okay; break okay;
@ -191,8 +191,8 @@ public abstract class Identifier {
newAlias.setCharAt(pos, '0'); newAlias.setCharAt(pos, '0');
} }
} }
newAlias.insert(0, renameRule == Obfuscator.RENAME_WEAK newAlias.append(renameRule == Obfuscator.RENAME_WEAK
? 'A': '0'); && newAlias.length() == 0 ? "A": "0");
} while (false); } while (false);
Identifier ptr = this; Identifier ptr = this;
while (ptr != null) { while (ptr != null) {

Loading…
Cancel
Save