spring-framework / org.springframework.core / BridgeMethodResolver / findBridgedMethod

findBridgedMethod

open static fun findBridgedMethod(bridgeMethod: Method): Method

Find the original method for the supplied Method.

It is safe to call this method passing in a non-bridge Method instance. In such a case, the supplied Method instance is returned directly to the caller. Callers are not required to check for bridging before calling this method.

Parameters

bridgeMethod - the method to introspect

Return
the original method (either the bridged method or the passed-in method if no more specific one could be found)