Skip to content

Commit 4a2187a

Browse files
dfa1claude
andcommitted
fix(compute): suppress S6218 on the internal CodeTable carrier
Sonar flags the boolean[] record component (array reference equality in the generated equals/hashCode). CodeTable is a private data carrier that flows from the predicate lowering to the scan loops and is never compared — the same justified suppression the array-holding ChunkedXxxArray records already carry. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 31fea8e commit 4a2187a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

reader/src/main/java/io/github/dfa1/vortex/reader/compute/DictFilter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,7 @@ private record DictShape(Array values, ByteArray codes, long codeStart,
806806
/// @param match whether each `u8` code selects its row (codes past the pool never match)
807807
/// @param matches the number of matching codes
808808
/// @param only the single matching code when `matches == 1`, else meaningless
809+
@SuppressWarnings("java:S6218") // internal data carrier; the match table flows from the lowering to the scan loops without ever being compared.
809810
private record CodeTable(boolean[] match, int matches, int only) {
810811
}
811812

0 commit comments

Comments
 (0)