com.puppycrawl.tools.checkstyle.checks.coding

Class DoubleCheckedLockingCheck

public class DoubleCheckedLockingCheck extends Check

Detect the double-checked locking idiom, a technique that tries to avoid synchronization overhead but is incorrect because of subtle artifacts of the java memory model. See The "Double-Checked Locking is Broken" Declaration for a more in depth explanation.

Author: Lars Kühne

Method Summary
int[]getDefaultTokens()
{@inheritDoc}
voidvisitToken(DetailAST aAST)
{@inheritDoc}

Method Detail

getDefaultTokens

public int[] getDefaultTokens()
{@inheritDoc}

visitToken

public void visitToken(DetailAST aAST)
{@inheritDoc}