private boolean equalsSimpleTypeNames ( MethodIdentifier identifier , MethodResult methodResult ) { MethodIdentifier originalIdentifier = methodResult . getOriginalMethodSignature ( ) ; return originalIdentifier . getMethodName ( ) . equals ( identifier . getMethodName ( ) ) && matchesTypeBestEffort ( originalIdentifier . getReturnType ( ) , identifier . getReturnType ( ) ) && parameterMatch ( originalIdentifier . getParameters ( ) , identifier . getParameters ( ) ) ; }
This is a best - effort approach combining only the simple types .