...
Wiki Markup |
---|
According to Joshua Bloch \[[Bloch 2008|AA. Java References#BlochBibliography#Bloch 08]\] |
If a method modifies a static field, you must synchronize access to this field, even if the method is typically used only by a single thread. It is not possible for clients to perform external synchronization on such a method because there can be no guarantee that unrelated clients will do likewise.
...
Wiki Markup |
---|
\[[API 2006|AA. Java References#APIBibliography#API 06]\] \[[Bloch 2008|AA. Java References#BlochBibliography#Bloch 08]\] Item 67: "Avoid excessive synchronization" |
...