CWE-585

Empty Synchronized Block

Medium

Description

The product contains an empty synchronized block.

Potential Impact

How to Fix

Implementation

When you come across an empty synchronized statement, or a synchronized statement in which the code has been commented out, try to determine what the original intentions were and whether or not the synchronized block is still necessary.

Detection Methods

Related Weaknesses

References

View on MITRE CWE Database →

Need Help Fixing This Vulnerability?

Our security experts can help you identify and remediate CWE-585 vulnerabilities in your codebase.

Get Security Assessment