Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
dfuchss committed Nov 29, 2024
1 parent d1e4d1a commit 5a51689
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ public record CodeConfiguration(File code, CodeConfigurationType type) {
}

public List<Extractor> 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");
Expand Down

0 comments on commit 5a51689

Please sign in to comment.