Class KotlinFilter

  • All Implemented Interfaces:
    MutationInterceptor

    public class KotlinFilter
    extends Object
    implements MutationInterceptor
    Quick dirty hack to filter out some of the junk mutations created for kotlin classes. These are mutations in autogenerated methods not created by the programmer, such as the copy method in data classes. For the amount assume that anything on line 0 of a kotlin class is autogenerated. This won't catch everything and will probably sometimes trigger when it shouldn't, but overall is a big improvement for very little effort.