xref: /aosp_15_r20/external/nullaway/nullaway/src/main/java/com/uber/nullaway/annotations/JacocoIgnoreGenerated.java (revision f50c306653bc89b8210ce6c9e0b0b44fc134bc03)
1 package com.uber.nullaway.annotations;
2 
3 import java.lang.annotation.ElementType;
4 import java.lang.annotation.Retention;
5 import java.lang.annotation.RetentionPolicy;
6 import java.lang.annotation.Target;
7 
8 /**
9  * Annotation to indicate to Jacoco that code coverage of a method or constructor should be ignored.
10  * Jacoco requires such annotations to have "Generated" in their name.
11  */
12 @Retention(RetentionPolicy.CLASS)
13 @Target({ElementType.METHOD, ElementType.CONSTRUCTOR})
14 public @interface JacocoIgnoreGenerated {}
15