As found by errorprone, this code:
if (type == Types.DECIMAL || type == Types.NUMERIC) {
((java.math.BigDecimal)x).setScale(scale);
}
has no effect because setScale is a pure function. Probably you want to assign that back to x. Probably tests should be written.
if (type == Types.DECIMAL || type == Types.NUMERIC) {
((java.math.BigDecimal)x).setScale(scale);
}
has no effect because setScale is a pure function. Probably you want to assign that back to x. Probably tests should be written.