Skip to content

Commit

Permalink
use getter
Browse files Browse the repository at this point in the history
  • Loading branch information
pstreef committed Apr 15, 2024
1 parent 9b6cfe7 commit e89bfa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/openrewrite/LanguageComposition.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public TreeVisitor<?, ExecutionContext> getScanner(Accumulator acc) {
FileComposition fileComposition = determineFileComposition(s);
Counts counts = acc.getFolderToLanguageToCounts()
.computeIfAbsent(folderPath, k -> new HashMap<>())
.computeIfAbsent(fileComposition.language, k -> new Counts());
.computeIfAbsent(fileComposition.getLanguage(), k -> new Counts());
counts.fileCount++;
counts.lineCount += fileComposition.languageLineCount;
perFileReport.insertRow(ctx, new LanguageCompositionPerFile.Row(
Expand Down

0 comments on commit e89bfa8

Please sign in to comment.