Commit d3c0452
fix: ensure mutable properties map before setting file_type on nodes
Some nodes are created with immutable Map.of() (e.g., inventory nodes
with Map.of("minified", true)). Calling put("file_type", ...) on these
throws UnsupportedOperationException.
Fix: ensureMutableProperties() helper wraps immutable maps in
LinkedHashMap before mutation. Applied at both file_type assignment
locations in Analyzer.java.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent d3b642b commit d3c0452
1 file changed
Lines changed: 20 additions & 2 deletions
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1300 | 1300 | | |
1301 | 1301 | | |
1302 | 1302 | | |
1303 | | - | |
| 1303 | + | |
1304 | 1304 | | |
1305 | 1305 | | |
1306 | 1306 | | |
| |||
1508 | 1508 | | |
1509 | 1509 | | |
1510 | 1510 | | |
1511 | | - | |
| 1511 | + | |
1512 | 1512 | | |
1513 | 1513 | | |
1514 | 1514 | | |
| |||
1626 | 1626 | | |
1627 | 1627 | | |
1628 | 1628 | | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
1629 | 1647 | | |
1630 | 1648 | | |
1631 | 1649 | | |
| |||
0 commit comments