Pattern: Empty synchronized
statement
Issue: -
Checks for empty synchronized statements. Empty synchronized statements are confusing and serve no purpose.
Here is an example of code that produces a violation:
class SomeClass {
def someMethod() {
synchronized(lock) {
}
}
}