Severity | 2 |
---|---|
Enabled | yes |
Waivable | |
Violation |
public class SynchronizedRunnableRunMethodRuleViolationTestCase extends Thread { private static org.apache.log4j.Logger logger = org.apache.log4j.Logger.getRootLogger(); public void run() { } } |
Fix |
public class SynchronizedRunnableRunMethodRuleFixTestCase extends Thread { private static org.apache.log4j.Logger logger = org.apache.log4j.Logger.getRootLogger(); public synchronized void run() { } } |