Commit 1bbc2fe
committed
fix: Drop float-equality check that failed the reliability gate
SonarCloud flagged S1244 (floating-point equality) on the `d == Math.rint(d)`
integrality test in checkInteger's fast double path, dropping New Code
reliability to C.
Remove the double fast path entirely: doubles reaching an integer schema are
either fractional (rejected) or rare integral doubles, both handled correctly
by converting through BigDecimal.toBigIntegerExact(). Integral wrappers keep
the allocation-free long path, so the common case is unaffected.1 parent f41402e commit 1bbc2fe
1 file changed
Lines changed: 4 additions & 10 deletions
Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
371 | | - | |
372 | 370 | | |
373 | 371 | | |
374 | 372 | | |
| |||
382 | 380 | | |
383 | 381 | | |
384 | 382 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
392 | 386 | | |
393 | 387 | | |
394 | 388 | | |
395 | | - | |
| 389 | + | |
396 | 390 | | |
397 | 391 | | |
398 | 392 | | |
| |||
0 commit comments