Java source code minifier?

Is there a tool for shredding Java source code?

I know that there is not much practical need for such a tool, but I'm interested in shortening some students' code to bare bones to show how their variable names are interpreted (sort-of - it it hefullyfully re-acknowledge that their choice of variable names is not considered) by the compiler. (The next step in this educational process may be to show them the compiled code).

Thanks.

+4
source share
1 answer

In the java world, we mostly speak because of the goal of obfuscation (even if, in my opinion, influencing the file size of an application can be useful, I used it a lot for Android applications several years ago).

The best java obfuscator is probably Progard . Like all of them, it can reduce all (not exported) names of classes and / or variables only to a letter, which is part of obfuscation, as well as part of minimization.

After that you need decompile bytecode if you want to show some java.

+5
source

All Articles