File tree Expand file tree Collapse file tree
framework/src/main/java/top/cadecode/uniboot/framework/convert/mybatis Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,12 +29,12 @@ public class DefaultEnumTypeHandler<E extends Enum<?>> extends BaseTypeHandler<E
2929
3030 public DefaultEnumTypeHandler (Class <E > type ) {
3131 if (Objects .isNull (type )) {
32- throw new IllegalArgumentException ("类型不能为空 " );
32+ throw new IllegalArgumentException ("type can not be null " );
3333 }
3434 this .type = type ;
3535 E [] enums = type .getEnumConstants ();
3636 if (Objects .isNull (enums )) {
37- throw new IllegalArgumentException (type .getSimpleName () + " 不是一个枚举类型 " );
37+ throw new IllegalArgumentException (type .getSimpleName () + " is not an enum type " );
3838 }
3939 enumMap = Arrays .stream (enums ).collect (toMap (o -> {
4040 // 实现 EnumConvertor 的枚举根据 persistBy 持久化
@@ -93,7 +93,7 @@ private E enumFromValue(Integer value) {
9393 if (Objects .nonNull (e )) {
9494 return e ;
9595 }
96- throw new IllegalArgumentException ("未知的泛型元素 :" + type .getSimpleName () + "." + value );
96+ throw new IllegalArgumentException ("Unknown generic element :" + type .getSimpleName () + "." + value );
9797 }
9898
9999 /**
You can’t perform that action at this time.
0 commit comments