From d99ab8e923d6d7bbf962d87a398c4f49b6a2f21a Mon Sep 17 00:00:00 2001 From: Michael Keppler Date: Sat, 2 Dec 2023 19:29:29 +0100 Subject: [PATCH] Improve quark parsing message (#672) Fixes #671. As suggested in the discussion, change the message to indicate that quark files are not parsed. Also change the unit from "Mb" to "MB", since "Mb" indicates Megabit. Add a blank between numbers and unit for readability and to be consistent with output in other parts of the code. --- src/main/java/org/openrewrite/maven/ResourceParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/openrewrite/maven/ResourceParser.java b/src/main/java/org/openrewrite/maven/ResourceParser.java index 3ccaae59..886dde1a 100644 --- a/src/main/java/org/openrewrite/maven/ResourceParser.java +++ b/src/main/java/org/openrewrite/maven/ResourceParser.java @@ -118,8 +118,8 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) { if (!attrs.isOther() && !attrs.isSymbolicLink() && !alreadyParsed.contains(file) && !isExcluded(file)) { if (isOverSizeThreshold(attrs.size())) { - logger.info("Parsing as quark " + file + " as its size " + attrs.size() / (1024L * 1024L) + - "Mb exceeds size threshold " + sizeThresholdMb + "Mb"); + logger.info("Not parsing quark " + file + " as its size " + attrs.size() / (1024L * 1024L) + + " MB exceeds size threshold " + sizeThresholdMb + " MB"); quarkPaths.add(file); } else if (isParsedAsPlainText(file)) { plainTextPaths.add(file);