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

想请教一下ConcurrentHashMap为什么要用final修饰? #110

Open
yuanxinan opened this issue Oct 12, 2020 · 2 comments
Open

想请教一下ConcurrentHashMap为什么要用final修饰? #110

yuanxinan opened this issue Oct 12, 2020 · 2 comments

Comments

@yuanxinan
Copy link

image
请问这两个map为什么要用final修饰?

@dengchao789
Copy link

不懂,老哥。这个项目咋写。不知道怎么开始。

@Gorho-newer
Copy link

就一个规范约束写法吧,引用不可变的常量

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

3 participants