Class EnumFilter

  • All Implemented Interfaces:
    MutationInterceptor

    public class EnumFilter
    extends Object
    implements MutationInterceptor
    Filters out mutations in Enum constructors, these are called only once per instance so are effectively static initializers. This overlaps with the StaticInitializerInterceptor, and could probably be removed. Left in place for now as it is computationally less expensive. Also filters mutants is the compiler generated valueOf and values methods.