|
@@ -17,7 +17,7 @@ package com.baomidou.mybatisplus.extension.handlers;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.serializer.SerializerFeature;
|
|
|
-import com.baomidou.mybatisplus.core.exceptions.MybatisPlusException;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.Assert;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.ibatis.type.BaseTypeHandler;
|
|
|
import org.apache.ibatis.type.JdbcType;
|
|
@@ -45,9 +45,7 @@ public class FastjsonTypeHandler extends BaseTypeHandler<Object> {
|
|
|
if (log.isTraceEnabled()) {
|
|
|
log.trace("FastjsonTypeHandler(" + type + ")");
|
|
|
}
|
|
|
- if (null == type) {
|
|
|
- throw new MybatisPlusException("Type argument cannot be null");
|
|
|
- }
|
|
|
+ Assert.notNull(type, "Type argument cannot be null");
|
|
|
this.type = type;
|
|
|
}
|
|
|
|