fix: 不显示数组为空异常信息。

This commit is contained in:
Suomm 2023-11-28 21:38:08 +08:00
parent bd16e6ee63
commit 5aa89d2092

View File

@ -83,7 +83,7 @@ public final class FlexAssert {
*/ */
public static <T> void notEmpty(T[] array, String param) { public static <T> void notEmpty(T[] array, String param) {
if (array == null || array.length == 0) { if (array == null || array.length == 0) {
throw FlexExceptions.wrap(param); throw FlexExceptions.wrap(LocalizedFormats.ARRAY_NULL_OR_EMPTY, param);
} }
} }