From 02b47038c6d337c128a2f157bbbee461973f8269 Mon Sep 17 00:00:00 2001 From: Martin Kouba Date: Mon, 2 Oct 2023 11:44:21 +0200 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Yoann Rodière --- .../arc/runtime/NativeBuildConfigCheckInterceptor.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/NativeBuildConfigCheckInterceptor.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/NativeBuildConfigCheckInterceptor.java index 6c6564292d0b0..4c5ef48130c77 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/NativeBuildConfigCheckInterceptor.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/NativeBuildConfigCheckInterceptor.java @@ -68,8 +68,7 @@ static void verifyCurrentImageMode(Set buildAndRunTimeFixed) { b.append("\nPOSSIBLE CONFIG INJECTION PROBLEM DETECTED\n"); b.append("-".repeat(120)); b.append("\nA config object was injected during the static initialization phase of a native image build.\n"); - b.append( - "This may result in unexpected errors.\n"); + b.append("This may result in unexpected errors.\n"); b.append("The injected value was obtained at native image build time and cannot be updated at runtime.\n\n"); if (injectionPoint != null) { b.append("Injection point: "); @@ -81,9 +80,9 @@ static void verifyCurrentImageMode(Set buildAndRunTimeFixed) { b.append(NativeBuildTime.class.getName()); b.append(" to eliminate the false positive\n"); b.append( - "\t- You can leverage the programmatic lookup to delay the injection of a config property; for example '@ConfigProperty(name = \"foo\") Instance foo'\n"); + "\t- You can leverage the programmatic lookup to delay the retrieval of a config property; for example '@ConfigProperty(name = \"foo\") Instance foo'\n"); b.append( - "\t- You can try to use a normal CDI scope to initialize the bean lazily; this may help if the is only injected but not directly used during the static initialization phase"); + "\t- You can try to assign a normal CDI scope (e.g. @ApplicationScoped) to the bean to initialize it lazily; this may help if the bean is only injected but not directly used during the static initialization phase"); b.append("\n"); b.append("=".repeat(120)); b.append("\n\n");