Annotation Interface DeadCodeGenerated


@Documented @Inherited @Retention(CLASS) @Target({CONSTRUCTOR,METHOD,TYPE}) public @interface DeadCodeGenerated
Instruct JaCoCo to not include the annotated element in any code coverage.

Use for things like private constructors in static-only classes, and overridden methods that only exist to instruct immutables on how to derive an implementation class, such as generated attributes and toString overrides.

This annotation must have Generated in the name for JaCoCo to detect it.

Since:
5.1.3
Author:
Ashley Scopes
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details