Merge pull request #24317 from dreis2211

* pr/24317:
  Remove deprecated code in EndpointDiscoverer

Closes gh-24317
pull/24336/head
Madhura Bhave 4 years ago
commit db677501ea

@ -240,17 +240,6 @@ public abstract class EndpointDiscoverer<E extends ExposableEndpoint<O>, O exten
&& isExtensionTypeExposed(extensionBean.getBeanType());
}
/**
* Determine if an extension bean should be exposed. Subclasses can override this
* method to provide additional logic.
* @param extensionBean the extension bean
* @return {@code true} if the extension is exposed
*/
@Deprecated
protected boolean isExtensionExposed(Object extensionBean) {
return true;
}
/**
* Determine if an extension bean should be exposed. Subclasses can override this
* method to provide additional logic.
@ -263,18 +252,7 @@ public abstract class EndpointDiscoverer<E extends ExposableEndpoint<O>, O exten
private boolean isEndpointExposed(EndpointBean endpointBean) {
return isFilterMatch(endpointBean.getFilter(), endpointBean) && !isEndpointFiltered(endpointBean)
&& isEndpointExposed(endpointBean.getBean());
}
/**
* Determine if an endpoint bean should be exposed. Subclasses can override this
* method to provide additional logic.
* @param endpointBean the endpoint bean
* @return {@code true} if the endpoint is exposed
*/
@Deprecated
protected boolean isEndpointExposed(Object endpointBean) {
return true;
&& isEndpointTypeExposed(endpointBean.getBeanType());
}
/**

Loading…
Cancel
Save