CWE-585: Empty Synchronized Block

VariantDraft

The product contains an empty synchronized block.

View on MITRE
Back to CWE Lookup

Extended Description

An empty synchronized block does not actually accomplish any synchronization and may indicate a troubled section of code. An empty synchronized block can occur because code no longer needed within the synchronized block is commented out without removing the synchronized block.

Technical Details

Structure
Simple

Applicable To

Languages
Java
Platforms

Learn More