| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This PR improves error handling in YAML and Properties config providers by changing from throwing an UncheckedIOException when a file doesn't exist to logging a warning and returning empty configuration. This makes the providers more suitable for dynamic configurations sourced from ConfigMaps.
Changes:
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| YamlConfigProvider.java | Added file existence check that returns empty Map and logs warning instead of throwing exception; added String constructor |
| PropertiesConfigProvider.java | Added file existence check that returns empty Properties and logs warning instead of throwing exception; added String constructor |
| YamlConfigProviderTest.java | Updated test to verify empty return value for missing file instead of exception |
| PropertiesConfigProviderTest.java | Updated test to verify empty return value for missing file instead of exception |
You can also share your feedback on Copilot code review. Take the survey.
Sorry, something went wrong.
Sorry, something went wrong.
…n missing file This it is easier to handle dynamic configurations coming from a ConfigMap Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This it is easier to handle dynamic configurations coming from a ConfigMap
Signed-off-by: Attila Mészáros a_meszaros@apple.com