diff --git a/stages-tlr/model-provider/src/main/java/edu/kit/kastel/mcse/ardoco/tlr/models/agents/ArchitectureConfiguration.java b/stages-tlr/model-provider/src/main/java/edu/kit/kastel/mcse/ardoco/tlr/models/agents/ArchitectureConfiguration.java index 9cca6d8..c441181 100644 --- a/stages-tlr/model-provider/src/main/java/edu/kit/kastel/mcse/ardoco/tlr/models/agents/ArchitectureConfiguration.java +++ b/stages-tlr/model-provider/src/main/java/edu/kit/kastel/mcse/ardoco/tlr/models/agents/ArchitectureConfiguration.java @@ -19,10 +19,10 @@ public record ArchitectureConfiguration(File architectureFile, ArchitectureModel } public Extractor extractor() { - return switch (type) { - case PCM -> new PcmExtractor(architectureFile.getAbsolutePath()); - case UML -> new UmlExtractor(architectureFile.getAbsolutePath()); - case RAW -> throw new IllegalArgumentException("Raw model is not supported for this project."); + return switch (this.type) { + case PCM -> new PcmExtractor(this.architectureFile.getAbsolutePath()); + case UML -> new UmlExtractor(this.architectureFile.getAbsolutePath()); + case RAW -> throw new IllegalArgumentException("Raw model is not supported for this project."); }; } } diff --git a/stages-tlr/model-provider/src/main/java/edu/kit/kastel/mcse/ardoco/tlr/models/agents/CodeConfiguration.java b/stages-tlr/model-provider/src/main/java/edu/kit/kastel/mcse/ardoco/tlr/models/agents/CodeConfiguration.java index 27bc05a..70c9a55 100644 --- a/stages-tlr/model-provider/src/main/java/edu/kit/kastel/mcse/ardoco/tlr/models/agents/CodeConfiguration.java +++ b/stages-tlr/model-provider/src/main/java/edu/kit/kastel/mcse/ardoco/tlr/models/agents/CodeConfiguration.java @@ -30,9 +30,9 @@ public record CodeConfiguration(File code, CodeConfigurationType type) { } public List extractors() { - if (type == CodeConfigurationType.DIRECTORY) { + if (this.type == CodeConfigurationType.DIRECTORY) { CodeItemRepository codeItemRepository = new CodeItemRepository(); - CodeExtractor codeExtractor = new AllLanguagesExtractor(codeItemRepository, code.getAbsolutePath()); + CodeExtractor codeExtractor = new AllLanguagesExtractor(codeItemRepository, this.code.getAbsolutePath()); return List.of(codeExtractor); } throw new IllegalStateException("CodeConfigurationType not supported");