---
id: WC-PERF-004
name: 优先使用toCharArray遍历字符
severity: error  # error=阻断, warning=警告
source: J000122
tool: auto  # auto-manual-auto: detected by tool / manual check / AST-grep
category: wc-performance
description: |
  优先使用toCharArray遍历字符

  对应浩鲸规范 J000122。

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

notes: "String char iteration"
