spring-framework / org.springframework.format.number / AbstractNumberFormatter / setLenient

setLenient

open fun setLenient(lenient: Boolean): Unit

Specify whether or not parsing is to be lenient. Default is false.

With lenient parsing, the parser may allow inputs that do not precisely match the format. With strict parsing, inputs must match the format exactly.