use of org.revapi.java.spi.JavaTypeElement in project revapi by revapi.
the class Removed method doEnd.
@Override
protected List<Difference> doEnd() {
ActiveElements<JavaTypeElement> types = popIfActive();
if (types != null) {
TypeElement typeInNew = getNewTypeEnvironment().getElementUtils().getTypeElement(types.oldElement.getDeclaringElement().getQualifiedName());
Difference difference = typeInNew == null ? createDifference(Code.CLASS_REMOVED, Code.attachmentsFor(types.oldElement, types.newElement)) : createDifference(Code.CLASS_EXTERNAL_CLASS_NO_LONGER_EXPOSED_IN_API, Code.attachmentsFor(types.oldElement, types.newElement));
return Collections.singletonList(difference);
}
return null;
}
Aggregations