You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
487 B
22 lines
487 B
package jode.obfuscator;
|
|
|
|
import @COLLECTIONS@.Iterator;
|
|
import @COLLECTIONEXTRA@.UnsupportedOperationException;
|
|
|
|
public class UniqueRenamer implements Renamer {
|
|
static int serialnr = 0;
|
|
public Iterator generateNames(Identifier ident) {
|
|
return new Iterator() {
|
|
public boolean hasNext() {
|
|
return true;
|
|
}
|
|
|
|
public Object next() {
|
|
return "xxx" + serialnr++;
|
|
}
|
|
public void remove() {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
};
|
|
}
|
|
}
|
|
|