Commit c45b841
fix(sonar): suppress S6218 on ZstdEncodingEncoder data-carrier records
SonarCloud flagged the private FrameLayout (long[] components) and Frames
(byte[] metadata) records as reliability bugs (java:S6218 — array content not
considered in equals/hashCode), failing the new-code reliability gate.
Both are internal data carriers: instances flow through the encode pipeline
positionally and are never value-compared, so the default identity equals is
correct and content-aware overrides would be dead code. Suppress with the same
justification used for the other carrier records (Dictionary64, KnownArrayNode,
ChunkRef, DecodeContext) rather than add unused overrides.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 3c98966 commit c45b841
1 file changed
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| 152 | + | |
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
| |||
0 commit comments