---
id: WC-CONCUR-008
name: 双重检查锁实现单例需volatile
severity: error  # error=阻断, warning=警告
source: J000026
tool: auto  # auto-manual-auto: detected by tool / manual check / AST-grep
category: wc-concurrency
description: |
  双重检查锁实现单例需volatile

  对应浩鲸规范 J000026。

check:
  type: ast-grep  # ast-grep / pmd-custom / spotbugs / checkstyle / manual
  pattern: TODO

notes: "PMD:NonVolatileClassMember"
