Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use equals instead of == #96

Closed
wants to merge 1 commit into from
Closed

use equals instead of == #96

wants to merge 1 commit into from

Conversation

JasonKDarby
Copy link

I ran across the issue described in #67 and thought you might consider it more if I went ahead and put up a PR :D

@AndrewHows
Copy link

I believe this needs changing on line 149 as well.

And a +1 for this pull request - I was about to make the same request, so you saved me some time :)

@niemandkun
Copy link
Contributor

niemandkun commented Dec 23, 2018

Hi! I've just opened another pull request on that issue: #105

My solution is a little bit more general and maintains backward compatibility with older versions of the library, where identity check was used. Please, check it too.

tommyettinger added a commit that referenced this pull request Nov 25, 2021
You can use an EqualsMethodStopCondition to compare easily with .equals(), or implement StopCondition however you want.
@tommyettinger
Copy link
Member

This is effectively possible now via a StopCondition added by #105 . There's a EqualsMethodStopCondition available by default now, which should act like this PR does. Thanks for waiting this out so long!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants