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

hashmap源码博客的put方法描述 #150

Open
copywang opened this issue Mar 24, 2019 · 1 comment
Open

hashmap源码博客的put方法描述 #150

copywang opened this issue Mar 24, 2019 · 1 comment

Comments

@copywang
Copy link

hashmap源码put方法里面的第二步判断
如果 key 为空,则 put 一个空值进去。
换成描述:
HashMap 使用第 0 个桶存放键为 null 的键值对

会不会好一点呢

@crossoverJie
Copy link
Owner

HashMap 使用第 0 个桶存放键为 null 的键值对

可以的,可以提个 PR。

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

No branches or pull requests

2 participants