ABSTRACT

This synchronized block contains no statements; it is unlikely the synchronization achieves the intended effect.

EXPLANATION

Synchronization in Java can be tricky. An empty synchronized block is often a sign that a programmer is wrestling with synchronization but has not yet achieved the result they intend.

Example:


synchronized(this) { }

REFERENCES

[1] Standards Mapping - Common Weakness Enumeration - (CWE) CWE ID 585