BigDecimal rounding constants to RoundingMode enums
MSALConvert BigDecimal rounding constants to the equivalent RoundingMode enum. The integer-based rounding constants on BigDecimal are deprecated and lack type safety; the RoundingMode enum makes the rounding behavior self-documenting and prevents invalid values.
org. openrewrite. staticanalysis. BigDecimalRoundingConstantsToEnumsmod run . --recipe= org. openrewrite. staticanalysis. BigDecimalRoundingConstantsToEnumsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.