diff --git a/src/main/java/org/metersphere/model/FieldWrapper.java b/src/main/java/org/metersphere/model/FieldWrapper.java index 4d8c58a..cc94553 100644 --- a/src/main/java/org/metersphere/model/FieldWrapper.java +++ b/src/main/java/org/metersphere/model/FieldWrapper.java @@ -6,7 +6,7 @@ import com.intellij.psi.util.PsiUtil; import lombok.Data; import org.apache.commons.collections.MapUtils; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.metersphere.AppSettingService; import org.metersphere.constants.ExcludeFieldConstants; import org.metersphere.constants.JavaTypeEnum; diff --git a/src/main/java/org/metersphere/utils/JsonUtil.java b/src/main/java/org/metersphere/utils/JsonUtil.java index 9a6b6a1..7c8db9f 100644 --- a/src/main/java/org/metersphere/utils/JsonUtil.java +++ b/src/main/java/org/metersphere/utils/JsonUtil.java @@ -7,11 +7,10 @@ import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.project.Project; import com.intellij.psi.*; -import com.intellij.psi.javadoc.PsiDocTag; import com.intellij.psi.search.GlobalSearchScope; import com.intellij.psi.util.PsiUtil; import org.apache.commons.collections.MapUtils; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.metersphere.AppSettingService; import org.metersphere.constants.JavaTypeEnum; import org.metersphere.constants.PluginConstants; @@ -356,7 +355,7 @@ else if (PsiTypeUtil.isCollection(field.getType())) { private static void getFormDataBeansMap(List param, PsiField field, String prefixField, int curDeepth, int maxDeepth) { if (curDeepth == maxDeepth) return; - prefixField = org.apache.commons.lang3.StringUtils.isNotBlank(prefixField) ? prefixField : ""; + prefixField = StringUtils.isNotBlank(prefixField) ? prefixField : ""; param.add(new PostmanModel.ItemBean.RequestBean.BodyBean.FormDataBean(prefixField + "." + field.getName() + ".key", "text", null, null)); } @@ -365,7 +364,7 @@ private static void getFormDataBeansPojo(List