boolean function ( Method arg0 , Method arg1 ) { if ( arg0 == arg1 ) { return true ; } return ( Arrays . equals ( arg0 . getParameterTypes ( ) , arg1 . getParameterTypes ( ) ) && arg0 . getReturnType ( ) . equals ( arg1 . getReturnType ( ) ) ) ; }
compare the signatures of the bridge method and the method which it bridges . if the parameter and return types are the same , it is a ` visibility ' bridge method introduced in java 6 to fix http://bugs.sun.com/view_bug.do?bug_id=6342411 . see also http://stas-blogspot.blogspot.com/2010/03/java-bridge-methods-explained.html concode_field_sep PlaceHolder placeHolder concode_field_sep Method searchCandidates concode_elem_sep Method searchForMatch concode_elem_sep boolean isBridgedCandidateFor concode_elem_sep Method findBridgedMethod concode_elem_sep Method findGenericDeclaration concode_elem_sep boolean isResolvedTypeMatch concode_elem_sep boolean isBridgeMethodFor