TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
TIOBE - Java Coding Standard
Search

Rule:  Basic13Checked automatically with code checker

Synopsis:Avoid empty synchronized blocks
Language:Java
Severity Level:4
Category:Basic


Description:
Avoid empty synchronized blocks - they're useless.
public class Foo {
 public void bar() {
  synchronized (this) {
   // empty!
  }
 }
}