I'm defining custom Enums for a webservice application and using Jacoco(0.7.5) for code coverage. The problem is that jacoco also considers compiler generated code since it evaluates compiled bytecode and because of this it shows missed instructions/branches for methods like valueOf(), values() in custom Enums which are present in the code base. I would like not to have to write test-cases for these every time I define a new Enum since these are java methods only. Is there a way to do this cleanly?