Skip to content

Commit

Permalink
Fix minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dfuchss committed Nov 29, 2024
1 parent 6c17d95 commit c87dc3e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ private static ImmutableList<ModelInstance> initArchitectureInstances(Architectu
MutableList<ModelInstance> 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();
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit c87dc3e

Please sign in to comment.