import org.revapi.java.spi.JavaAnnotationElement;
public final class Removed extends CheckBase {
@Override
protected List<Difference> doVisitAnnotation(JavaAnnotationElement oldAnnotation,
JavaAnnotationElement newAnnotation) {
<BUG>if (oldAnnotation != null && newAnnotation == null) {
return Collections.singletonList(</BUG>
createDifference(Code.ANNOTATION_REMOVED, Code.attachmentsFor(oldAnnotation, null))
);
}

import org.revapi.java.spi.JavaAnnotationElement;
public final class Removed extends CheckBase {
@Override
protected List<Difference> doVisitAnnotation(JavaAnnotationElement oldAnnotation,
JavaAnnotationElement newAnnotation) {
if (oldAnnotation != null && newAnnotation == null && isAccessible(oldAnnotation.getParent())) {
return Collections.singletonList(
createDifference(Code.ANNOTATION_REMOVED, Code.attachmentsFor(oldAnnotation, null))
);
}
