Apache POI use Cell.setCellType(CellType)

MSAL

Cell.setCellType() can be configured with either an integer or a the CellType enumeration. It is clearer and less error-prone to use the CellType enumeration, so this recipe converts all setCellType() calls to use it.

org.openrewrite.apache.poi.ReplaceSetCellType
mod run . --recipe=org.openrewrite.apache.poi.ReplaceSetCellType

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