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