This is basically a more generic replacement for UnsynchronizedStaticDateFormatter. The problem is not specific to DateFormat, but to java.text.Format
in general:
Formats are generally not synchronized. It is recommended to create separate format instances for each thread. If multiple threads access a format concurrently, it must be synchronized externally.
(https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/Format.html)
So we should detect such usages of Format
(and subclasses) instead of just DateFormat
or SimpleDateFormat
.
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