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

Mapping类equals方法错误 #15

Closed
weikipeng opened this issue Oct 27, 2016 · 1 comment
Closed

Mapping类equals方法错误 #15

weikipeng opened this issue Oct 27, 2016 · 1 comment

Comments

@weikipeng
Copy link

weikipeng commented Oct 27, 2016

 if (o == this) {
            return true;
        }
        if (o instanceof Mapping) {
            Mapping that = (Mapping) o;
              return that.format.equals(((Mapping) o).format);
        }
        return false;

return that.format.equals(((Mapping) o).format);语句有问题,永远为true

@mzule
Copy link
Owner

mzule commented Oct 27, 2016

@weikipeng 尴尬了,手误,我会尽快修复。

@mzule mzule closed this as completed Oct 27, 2016
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

No branches or pull requests

2 participants