Fix hash code for method descriptor