[java] NonThreadSafeSingleton false positive with double-checked locking #4483
Labels
a:false-positive
PMD flags a piece of code that is not problematic
Milestone
Affects PMD Version: 6.x
Rule: NonThreadSafeSingleton
Description:
The rule reports a violation even for double checked locking, that is implemented correctly.
Code Sample demonstrating the issue:
Expected outcome: No violation
Note: This has already been fixed for PMD 7.0.0-rc1 via #3474. This issue is just there for documentation.
The text was updated successfully, but these errors were encountered: