修复分组名出现文件后缀bug

This commit is contained in:
makejava 2021-08-14 11:55:47 +08:00
parent 033ffad049
commit bd0905d5c9
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -96,7 +96,7 @@ public class GenerateDefaultConfigTest {
settingsStorage.setTypeMapperGroupMap(new HashMap<>(root.listFiles().length));
for (File file : root.listFiles()) {
TypeMapperGroup typeMapperGroup = new TypeMapperGroup();
typeMapperGroup.setName(file.getName());
typeMapperGroup.setName(file.getName().replace(".json", ""));
if (file.isFile()) {
String json = FileUtilRt.loadFile(file);
typeMapperGroup.setElementList(JSON.parse(json, new TypeReference<List<TypeMapper>>() {
@ -111,7 +111,7 @@ public class GenerateDefaultConfigTest {
settingsStorage.setColumnConfigGroupMap(new HashMap<>(root.listFiles().length));
for (File file : root.listFiles()) {
ColumnConfigGroup columnConfigGroup = new ColumnConfigGroup();
columnConfigGroup.setName(file.getName());
columnConfigGroup.setName(file.getName().replace(".json", ""));
if (file.isFile()) {
String json = FileUtilRt.loadFile(file);
columnConfigGroup.setElementList(JSON.parse(json, new TypeReference<List<ColumnConfig>>() {