Method method = null;
method = MethodFinderUtils.findMethod(cls, MethodScope.OBJECT, MethodPrefixConstants.REMOVING_PREFIX, void.class, NO_PARAMETERS_TYPES);
if (method != null) {
methods.add(method);
final RemovingCallbackFacet facet = facetHolder.getFacet(RemovingCallbackFacet.class);
if (facet == null) {
facets.add(new RemovingCallbackFacetViaMethod(method, facetHolder));
} else {
facet.addMethod(method);
}
}
method = MethodFinderUtils.findMethod(cls, MethodScope.OBJECT, MethodPrefixConstants.REMOVED_PREFIX, void.class, NO_PARAMETERS_TYPES);
if (method != null) {
methods.add(method);
final RemovedCallbackFacet facet = facetHolder.getFacet(RemovedCallbackFacet.class);
if (facet == null) {
facets.add(new RemovedCallbackFacetViaMethod(method, facetHolder));
} else {
facet.addMethod(method);
}
}
processClassContext.removeMethods(methods);
FacetUtil.addFacets(facets);