From 0b203d12d743fe8affca7fd23b88e3eaad45ebe1 Mon Sep 17 00:00:00 2001 From: Peter Streef Date: Mon, 15 Apr 2024 10:52:56 +0200 Subject: [PATCH] use getter --- src/main/java/org/openrewrite/LanguageComposition.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/openrewrite/LanguageComposition.java b/src/main/java/org/openrewrite/LanguageComposition.java index 3333f8d..9102c52 100644 --- a/src/main/java/org/openrewrite/LanguageComposition.java +++ b/src/main/java/org/openrewrite/LanguageComposition.java @@ -189,12 +189,12 @@ public TreeVisitor getScanner(Accumulator acc) { .computeIfAbsent(folderPath, k -> new HashMap<>()) .computeIfAbsent(fileComposition.getLanguage(), k -> new Counts()); counts.fileCount++; - counts.lineCount += fileComposition.languageLineCount; + counts.lineCount += fileComposition.getLanguageLineCount(); perFileReport.insertRow(ctx, new LanguageCompositionPerFile.Row( s.getSourcePath().toString(), - fileComposition.language, + fileComposition.getLanguage(), s.getClass().getName(), - fileComposition.fileLineCount, + fileComposition.getFileLineCount(), hasParseFailure)); return tree; }