BigDecimal rounding constants to RoundingMode enums

MSAL

Convert 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.BigDecimalRoundingConstantsToEnums
mod run . --recipe=org.openrewrite.staticanalysis.BigDecimalRoundingConstantsToEnums

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.