From c87dc3ed4cd534c739cc233d5c3f19a2b26d411d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Fuch=C3=9F?= Date: Fri, 29 Nov 2024 21:24:38 +0100 Subject: [PATCH] Fix minor bug --- .../legacy/LegacyModelExtractionStateByArCoTL.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/architecture/legacy/LegacyModelExtractionStateByArCoTL.java b/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/architecture/legacy/LegacyModelExtractionStateByArCoTL.java index 25a73fb29..8efd5b7e3 100644 --- a/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/architecture/legacy/LegacyModelExtractionStateByArCoTL.java +++ b/framework/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/architecture/legacy/LegacyModelExtractionStateByArCoTL.java @@ -67,9 +67,9 @@ private static ImmutableList initArchitectureInstances(Architectu MutableList instances = Lists.mutable.empty(); for (ArchitectureItem architectureItem : architectureModel.getEndpoints()) { switch (architectureItem) { - case ArchitectureComponent component -> instances.add(new ModelInstanceImpl(component.getName(), component.getType(), component.getId())); - case ArchitectureInterface ignored -> LegacyModelExtractionStateByArCoTL.logger.debug("Skipping .. ArchitectureInterface not supported yet"); - case ArchitectureMethod ignored -> LegacyModelExtractionStateByArCoTL.logger.debug("Skipping .. ArchitectureMethod not supported yet"); + case ArchitectureComponent component -> instances.add(new ModelInstanceImpl(component.getName(), component.getType(), component.getId())); + case ArchitectureInterface ignored -> LegacyModelExtractionStateByArCoTL.logger.debug("Skipping .. ArchitectureInterface not supported yet"); + case ArchitectureMethod ignored -> LegacyModelExtractionStateByArCoTL.logger.debug("Skipping .. ArchitectureMethod not supported yet"); } } return instances.toImmutable(); @@ -120,7 +120,7 @@ private static String findType(CodeCompilationUnit unit) { // Default to Class return "Class"; } - if (unit.getLanguage() == ProgrammingLanguages.SHELL) { + if (ProgrammingLanguages.SHELL.equals(unit.getLanguage())) { return "ShellScript"; } throw new IllegalStateException("Unknown type of CodeCompilationUnit");