Package net.sourceforge.pmd.lang.java.rule.multithreading
-
Class Summary Class Description DoubleCheckedLockingRule void method() { if (x == null) { synchronized(this){ if (x == null) { x = new | method(); } } } }NonThreadSafeSingletonRule UnsynchronizedStaticDateFormatterRule Using a DateFormatter (SimpleDateFormatter) which is static can cause unexpected results when used in a multi-threaded environment.