A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/1633 below:

[java] UnsynchronizedStaticFormatter reports commons lang FastDateFormat · Issue #1633 · pmd/pmd · GitHub

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