-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check duplicate keys #1270
check duplicate keys #1270
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR. I've left a few comments.
implementation/src/main/java/io/smallrye/config/ConfigValueConfigSource.java
Outdated
Show resolved
Hide resolved
implementation/src/main/java/io/smallrye/config/ConfigValuePropertiesUtils.java
Outdated
Show resolved
Hide resolved
c9ccf3c
to
1285338
Compare
implementation/src/main/java/io/smallrye/config/ConfigValueConfigSource.java
Outdated
Show resolved
Hide resolved
There is an issue with the code style, can you please do a local build to fix it? I've tried it myself, but apparently I can't push changes to your fork. |
Yes, sorry, my bad. After the last commit, I forgot to run: mvn -f implementation net.revelc.code.formatter:formatter-maven-plugin:2.22.0:format
mvn formatter:validate verify Now the local check completed without alerts. (tried with java 11, 17 and 21). I also rebased onto main and checked again. |
Only for properties config source : duplicate keys found in te same config source will be logged as warning.
Added a log method in ConfigLogging to handle duplicate values.
2b78690
to
37634ef
Compare
Great! Thank you for the PR and your patience, really appreciated it :) |
Edit :
Only for properties config source : duplicate keys found in te same config source will be logged as warning.
NOTE: this is just a proposal of implementation.