Skip to content

Commit

Permalink
fix source gen
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Feb 4, 2025
1 parent 5dcdf39 commit 898156d
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1157,9 +1157,15 @@ private static void replicateBooleanSparseArraySource() throws IOException {
"ObjectChunk<[?] super Values>", "ObjectChunk<Boolean, ? super Values>");
lines = simpleFixup(lines, "primitive get", "NULL_BOOLEAN", "NULL_BOOLEAN_AS_BYTE", "getBoolean", "getByte",
"getPrevBoolean", "getPrevByte");
lines = simpleFixup(lines, "nullByKeys", "NULL_BOOLEAN", "NULL_BOOLEAN_AS_BYTE");
lines = simpleFixup(lines, "nullByRanges", "NULL_BOOLEAN", "NULL_BOOLEAN_AS_BYTE");
lines = simpleFixup(lines, "setNull", "NULL_BOOLEAN", "NULL_BOOLEAN_AS_BYTE");
lines = simpleFixup(lines, "nullByKeys",
"oldValue != NULL_BOOLEAN", "!BooleanUtils.isNull(oldValue)",
"NULL_BOOLEAN", "NULL_BOOLEAN_AS_BYTE");
lines = simpleFixup(lines, "nullByRanges",
"block\\[indexWithinBlock\\] != NULL_BOOLEAN", "!BooleanUtils.isNull(block[indexWithinBlock])",
"NULL_BOOLEAN", "NULL_BOOLEAN_AS_BYTE");
lines = simpleFixup(lines, "setNull",
"blocks2\\[indexWithinBlock\\] == NULL_BOOLEAN", "BooleanUtils.isNull(blocks2[indexWithinBlock])",
"NULL_BOOLEAN", "NULL_BOOLEAN_AS_BYTE");

lines = replaceRegion(lines, "copyFromTypedArray", Arrays.asList(
" for (int jj = 0; jj < length; ++jj) {",
Expand Down

0 comments on commit 898156d

Please sign in to comment.