itwanger / itwanger/toBeBetterJavaer
在文章“字符串为什么不可变”中,没有提及线程安全问题
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.7k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
https://javabetter.cn/string/immutable.html
王二作者你好,我在学习的过程中发现您的这篇文章内没有提及String类不可变的一个重要原因是为了防止线程安全问题。请问是有什么原因吗,希望能够进行补充。另外此篇文章下的两个评论我认为也有道理。文章中的一些例子有可以改进的地方。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the article at https://javabetter.cn/string/immutable.html and read its two comments for the suggested improvements. Compare the current explanation of String immutability with the reported omission about thread safety and identify which examples need improvement. Done means the article addresses the thread-safety rationale and incorporates the agreed example changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100