AI REVIEWED
Module: cli
File: cli/format/FormatRegistry.java (~line 62-65)
Severity: Medium
Summary
Documentation warns that register() is not synchronized, but no enforcement prevents concurrent registration. Uses LinkedHashMap which is not thread-safe.
Suggested Fix
Either:
- Use
ConcurrentHashMap and synchronize register()
- Freeze after initialization (like the core registries)
- Throw exception if registration attempted after first
get() call