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.
|
Copyright © 2002–2018 PMD. All rights reserved.