From e89bfa84d6ff6e8fe4fee939a07e2faec0f4ede0 Mon Sep 17 00:00:00 2001
From: Peter Streef
Date: Mon, 15 Apr 2024 10:52:41 +0200
Subject: [PATCH] use getter
---
src/main/java/org/openrewrite/LanguageComposition.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/openrewrite/LanguageComposition.java b/src/main/java/org/openrewrite/LanguageComposition.java
index b29edb7..3333f8d 100644
--- a/src/main/java/org/openrewrite/LanguageComposition.java
+++ b/src/main/java/org/openrewrite/LanguageComposition.java
@@ -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(