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

#3352问题实现遗漏,和最佳改法推荐 #3356

Closed
iyun1984 opened this issue Jul 20, 2020 · 0 comments
Closed

#3352问题实现遗漏,和最佳改法推荐 #3356

iyun1984 opened this issue Jul 20, 2020 · 0 comments
Milestone

Comments

@iyun1984
Copy link

#3352,见源码已对此建议进行兼容性扩展,却有遗漏。需要对get方法也进行兼容性扩展。
你好,这里只是修改了containsKey,get方法也需要同步修改
采用以下方式兼容性更强代码也更简洁,望采纳:
public Object get(Object key) {
return map.get(key==null?key:key.toString());
}
public boolean containsKey(Object key) {
return map.containsKey(key==null?key:key.toString());
}

@wenshao wenshao added this to the 1.2.73 milestone Jul 20, 2020
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