public class Foo { private static final SimpleDateFormat sdf = new SimpleDateFormat(); synchronized void foo() { sdf.format(); // static field is not protected by synchronization on non-static method } }
Originally posted by @boris-petrov in #1814 (comment)
Metadata Metadata Assignees No one assigned Development No branches or pull requests Issue actionsYou can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4