mirror of https://gitee.com/makejava/EasyCode.git
修复分组名出现文件后缀bug
This commit is contained in:
parent
033ffad049
commit
bd0905d5c9
File diff suppressed because one or more lines are too long
|
@ -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>>() {
|
||||
|
|
Loading…
Reference in New Issue