diff --git a/core/deployment/src/main/java/io/quarkus/deployment/configuration/BuildTimeConfigurationReader.java b/core/deployment/src/main/java/io/quarkus/deployment/configuration/BuildTimeConfigurationReader.java index 7137cf716463f..af4e8fc63fb8d 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/configuration/BuildTimeConfigurationReader.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/configuration/BuildTimeConfigurationReader.java @@ -1109,7 +1109,7 @@ public Set getPropertyNames() { } }); - String[] profiles = config.getProfiles().toArray(new String[] {}); + String[] profiles = config.getProfiles().toArray(String[]::new); for (String property : builder.build().getPropertyNames()) { properties.add(ProfileConfigSourceInterceptor.activeName(property, profiles)); }