imporve redundant if statement
@ -379,10 +379,7 @@ public final class Utils {
* @throws IllegalArgumentException if the character sequence is empty
*/
public static <T extends CharSequence> T notEmpty(T chars, String message, Object... values) {
if (chars == null) {
throw new IllegalArgumentException(String.format(message, values));
}
if (chars.length() == 0) {
if (chars == null || chars.length() == 0) {
return chars;
@ -101,8 +101,8 @@ public class JacksonJsonNodeJsonProvider extends AbstractJsonProvider {
return e.asInt();
} else if (e.isLong()) {
return e.asLong();
} else if (e.isBigDecimal()) {
return e.decimalValue();
} else if (e.isBigInteger()) {
return e.bigIntegerValue();
} else if (e.isDouble()) {
return e.doubleValue();
} else if (e.isFloat()) {