Annotation Interface ExcludeFromJacocoGeneratedReport


@Retention(RUNTIME) @Target({TYPE,CONSTRUCTOR,METHOD}) public @interface ExcludeFromJacocoGeneratedReport
Starting from JaCoCo 0.8.2, we can exclude classes and methods by annotating them with a custom annotation with the following properties:
  • The name of the annotation should include Generated.
  • The retention policy of annotation should be runtime or class.