Affects PMD Version:
6.11
Rule:UnsynchronizedStaticFormatter
Description:
The new rule UnsynchronizedStaticFormatter
reports usage of org.apache.commons.lang3.time.FastDateFormat
which is a commonly used thread safe alternative to java.text.SimpleDateFormat
.
Could you add an exception to not check the instances of FastDateFormat
?
UnsynchronizedStaticDateFormatter
will be removed in PMD 7.0.
Code Sample demonstrating the issue:
private static final FastDateFormat FDF = FastDateFormat.getInstance("dd.MM.yyyy HH:mm:ss");
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