From 7df6b0f6908901b7a294257986c018d4e1719695 Mon Sep 17 00:00:00 2001 From: Roberto Cortez Date: Thu, 14 Mar 2024 12:39:18 +0000 Subject: [PATCH] Update core/deployment/src/main/java/io/quarkus/deployment/steps/ConfigGenerationBuildStep.java Co-authored-by: David M. Lloyd (cherry picked from commit d86bfca078b2893f3968a62493b83edf262b5869) --- .../io/quarkus/deployment/steps/ConfigGenerationBuildStep.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/ConfigGenerationBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/ConfigGenerationBuildStep.java index 0ff93909c63e1..a84ccdd1a0fda 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/steps/ConfigGenerationBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/ConfigGenerationBuildStep.java @@ -218,7 +218,7 @@ void generateBuilders( defaultValues.put(e.getKey(), e.getValue()); } // Recorded values from build time from any other source (higher ordinal then defaults, so override) - String[] profiles = ConfigProvider.getConfig().unwrap(SmallRyeConfig.class).getProfiles().toArray(new String[] {}); + String[] profiles = ConfigProvider.getConfig().unwrap(SmallRyeConfig.class).getProfiles().toArray(String[]::new); for (Map.Entry entry : configItem.getReadResult().getRunTimeValues().entrySet()) { // Runtime values may contain active profiled names that override sames names in defaults // We need to keep the original name definition in case a different profile is used to run the app