Commit 8e472c5
fix(profiling): Use AtomicReference for metaLength to preserve nullable contract
AtomicInteger initialized to -1 would write meta_length: -1 if the
header were serialized before the payload was materialized. Replace
with AtomicReference<Integer> initialized to null so getMetaLength()
correctly returns null before evaluation, matching the @nullable
contract and causing serialize() to skip the field.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b3c71ce commit 8e472c5
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
393 | | - | |
| 393 | + | |
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| |||
0 commit comments