From a873bbcaac8e63bec74a2fce6a67fce3ef1f8e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=80=E6=BA=90=E6=B5=B7=E5=93=A5?= Date: Sun, 28 May 2023 09:28:22 +0800 Subject: [PATCH] optimize FieldWrapper.java --- .../src/main/java/com/mybatisflex/core/util/FieldWrapper.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/util/FieldWrapper.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/util/FieldWrapper.java index ae894a26..59dfc80f 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/util/FieldWrapper.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/util/FieldWrapper.java @@ -15,8 +15,6 @@ */ package com.mybatisflex.core.util; -import com.mybatisflex.core.exception.FlexExceptions; - import java.lang.reflect.*; import java.util.Collection; import java.util.Map; @@ -57,7 +55,7 @@ public class FieldWrapper { && method.getName().equals("set" + StringUtil.firstCharToUpperCase(fieldName))); if (setter == null) { - throw FlexExceptions.wrap("Can not find method \"set" + StringUtil.firstCharToUpperCase(fieldName) + "\" in class: " + clazz); + throw new IllegalStateException("Can not find method \"set" + StringUtil.firstCharToUpperCase(fieldName) + "\" in class: " + clazz); } fieldWrapper = new FieldWrapper();