Class ImplicitConstructorCleanup

java.lang.Object
net.covers1624.coffeegrinder.bytecode.transform.transformers.ImplicitConstructorCleanup
All Implemented Interfaces:
ClassTransformer, Transformer

public class ImplicitConstructorCleanup extends Object implements ClassTransformer
We have the following cases to deal with:
 - Remove calls to super with no arguments.
 - Nuke anon class passthrough constructors.
 - Remove constructors which only have a single super call
   - If there are no other constructors and
   - If the method is declared as public or the class is an enum
 - Remove empty static initializers
 
Created by covers1624 on 26/11/21.