Skip to content

Commit c87dc3e

Browse files
committed
Fix minor bug
1 parent 6c17d95 commit c87dc3e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/architecture/legacy/LegacyModelExtractionStateByArCoTL.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ private static ImmutableList<ModelInstance> initArchitectureInstances(Architectu
6767
MutableList<ModelInstance> instances = Lists.mutable.empty();
6868
for (ArchitectureItem architectureItem : architectureModel.getEndpoints()) {
6969
switch (architectureItem) {
70-
case ArchitectureComponent component -> instances.add(new ModelInstanceImpl(component.getName(), component.getType(), component.getId()));
71-
case ArchitectureInterface ignored -> LegacyModelExtractionStateByArCoTL.logger.debug("Skipping .. ArchitectureInterface not supported yet");
72-
case ArchitectureMethod ignored -> LegacyModelExtractionStateByArCoTL.logger.debug("Skipping .. ArchitectureMethod not supported yet");
70+
case ArchitectureComponent component -> instances.add(new ModelInstanceImpl(component.getName(), component.getType(), component.getId()));
71+
case ArchitectureInterface ignored -> LegacyModelExtractionStateByArCoTL.logger.debug("Skipping .. ArchitectureInterface not supported yet");
72+
case ArchitectureMethod ignored -> LegacyModelExtractionStateByArCoTL.logger.debug("Skipping .. ArchitectureMethod not supported yet");
7373
}
7474
}
7575
return instances.toImmutable();
@@ -120,7 +120,7 @@ private static String findType(CodeCompilationUnit unit) {
120120
// Default to Class
121121
return "Class";
122122
}
123-
if (unit.getLanguage() == ProgrammingLanguages.SHELL) {
123+
if (ProgrammingLanguages.SHELL.equals(unit.getLanguage())) {
124124
return "ShellScript";
125125
}
126126
throw new IllegalStateException("Unknown type of CodeCompilationUnit");

0 commit comments

Comments
 (0)