Intellij planing to support source code obfuscation/optimisation, such as
1. Removing dead code
- of unused public, protected, package, private classes, methods and variable
- This depends on the root class provided e.g main in java class, applet class for applets, midlet class in j2me midlets
2. Class/Interface merging
Support class and interface merging so as to reduce no of classes/interfaces.
.eg if a program has intefaces A and B with both having public static final variables only, B extends A and overides few of the public static final variables. If the program uses the refeces to B
every where then , We could copy all the public static final variables which are not over ridden in B to B and remove A completely.
There are many such obfusators/optimisations already avaiable and popular at class byte level. However none is popular at source code level.
e.g of class obfuscators are prograourd, retroguard etc..
e.g of java source code are http://www.pcsentinelsoftware.com/products/mangleitjava/install_mangler_java.php
I am sure what I said or of such optimsations and once this approach become popular, there could n such optimisation possible and help in software source code maintance.
Raja Nagendra Kumar,