From 2389e46f9d9a54c854365902ae10b15e3100b563 Mon Sep 17 00:00:00 2001 From: Roberto Cortez Date: Mon, 25 Sep 2023 19:54:29 +0100 Subject: [PATCH] Add constructor to DefaultValuesConfigSource for name and ordinal --- .../java/io/smallrye/config/DefaultValuesConfigSource.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/implementation/src/main/java/io/smallrye/config/DefaultValuesConfigSource.java b/implementation/src/main/java/io/smallrye/config/DefaultValuesConfigSource.java index eb36de9e3..4dfd89284 100644 --- a/implementation/src/main/java/io/smallrye/config/DefaultValuesConfigSource.java +++ b/implementation/src/main/java/io/smallrye/config/DefaultValuesConfigSource.java @@ -14,7 +14,11 @@ public final class DefaultValuesConfigSource extends AbstractConfigSource { private final KeyMap wildcards; public DefaultValuesConfigSource(final Map properties) { - super("DefaultValuesConfigSource", Integer.MIN_VALUE); + this(properties, "DefaultValuesConfigSource", Integer.MIN_VALUE); + } + + public DefaultValuesConfigSource(final Map properties, final String name, final int ordinal) { + super(name, ordinal); this.properties = new HashMap<>(); this.wildcards = new KeyMap<>(); addDefaults(properties);