From 17f32f3b1c707cb10e7379922e4eee810d72a89a Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Tue, 12 Jan 2021 21:26:20 +1100 Subject: [PATCH] Fix warning in native mode when using bootstrap config Fixes #14233 --- .../configuration/RunTimeConfigurationGenerator.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/configuration/RunTimeConfigurationGenerator.java b/core/deployment/src/main/java/io/quarkus/deployment/configuration/RunTimeConfigurationGenerator.java index d561e386b5b9d..9136c61a379c7 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/configuration/RunTimeConfigurationGenerator.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/configuration/RunTimeConfigurationGenerator.java @@ -453,6 +453,9 @@ public void run() { final ConfigPatternMap runTimeIgnored = ConfigPatternMap .merge(ConfigPatternMap.merge(buildTimePatternMap, buildTimeRunTimePatternMap, combinator), bootstrapPatternMap, combinator); + final ConfigPatternMap bootstrapIgnored = ConfigPatternMap + .merge(ConfigPatternMap.merge(buildTimePatternMap, + buildTimeRunTimePatternMap, combinator), runTimePatternMap, combinator); final MethodDescriptor siParserBody = generateParserBody(buildTimeRunTimePatternMap, buildTimeRunTimeIgnored, new StringBuilder("siParseKey"), false, Type.BUILD_TIME); @@ -460,7 +463,7 @@ public void run() { new StringBuilder("rtParseKey"), false, Type.RUNTIME); MethodDescriptor bsParserBody = null; if (bootstrapConfigSetupNeeded()) { - bsParserBody = generateParserBody(bootstrapPatternMap, null, + bsParserBody = generateParserBody(bootstrapPatternMap, bootstrapIgnored, new StringBuilder("bsParseKey"), false, Type.BOOTSTRAP); }