java-deobfuscator / deobfuscator

The real deal
https://javadeobfuscator.com
Apache License 2.0
1.56k stars 290 forks source link

move classes from the default package to a package #862

Closed rdutta closed 2 years ago

rdutta commented 2 years ago

Hello, I'm wondering if its possible to tweak the PackageNormalizer transformer (or use the CustomRemapper) to rename classes that have no package (default package) so that they are put in a package.

Possibly relevant: the obfuscated code I have has all classes in the default package, every class has a one or two letter name, and many fields/methods share the same name as the classes.

rdutta commented 2 years ago

the ClassNormalizer transformer seems to be what I was looking for, woops!