Commit 129d8e26 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

ignore letter case for submap connections

parent 9d3bed38
Pipeline #4258 passed with stage
in 1 minute and 15 seconds
......@@ -103,8 +103,8 @@ public class ComplexZipConverter {
String mapping = validateSubmodelInformation(params, zipFile);
IConverter converter = createConverterInstance();
Map<String, Model> filenameModelMap = new HashMap<String, Model>();
Map<String, Model> nameModelMap = new HashMap<String, Model>();
Map<String, Model> filenameModelMap = new HashMap<>();
Map<String, Model> nameModelMap = new HashMap<>();
entries = zipFile.entries();
Model result = null;
......@@ -123,7 +123,7 @@ public class ComplexZipConverter {
Model model = converter.createModel(cParams);
model.setName(modelEntryFile.getName());
filenameModelMap.put(entry.getName(), model);
nameModelMap.put(FilenameUtils.getBaseName(modelEntryFile.getFilename()), model);
nameModelMap.put(FilenameUtils.getBaseName(modelEntryFile.getFilename()).toLowerCase(), model);
if (modelEntryFile.isRoot()) {
result = model;
}
......@@ -240,8 +240,8 @@ public class ComplexZipConverter {
if (complexTo == null) {
complexTo = (Complex) toAlias;
}
String fromName = complexFrom.getName();
String toName = complexTo.getName();
String fromName = complexFrom.getName().toLowerCase();
String toName = complexTo.getName().toLowerCase();
Model fromModel = nameModelMap.get(fromName);
Model toModel = nameModelMap.get(toName);
if (fromModel == null) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment