Skip to content
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

Enhancement #84: Avoid configuration data output via Configuration.toString() #87

Merged
merged 4 commits into from
Aug 7, 2022
Merged

Enhancement #84: Avoid configuration data output via Configuration.toString() #87

merged 4 commits into from
Aug 7, 2022

Conversation

oswaldobapvicjr
Copy link
Owner

No description provided.

@oswaldobapvicjr oswaldobapvicjr linked an issue Jul 18, 2022 that may be closed by this pull request
@oswaldobapvicjr oswaldobapvicjr self-assigned this Jul 18, 2022
@codecov
Copy link

codecov bot commented Jul 18, 2022

Codecov Report

Merging #87 (b623e12) into master (6c13440) will increase coverage by 0.28%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master      #87      +/-   ##
============================================
+ Coverage     98.96%   99.24%   +0.28%     
- Complexity      454      493      +39     
============================================
  Files            65       69       +4     
  Lines           870      932      +62     
  Branches         69       70       +1     
============================================
+ Hits            861      925      +64     
+ Misses            7        5       -2     
  Partials          2        2              
Impacted Files Coverage Δ
.../java/net/obvj/confectory/source/StringSource.java 77.77% <100.00%> (+11.11%) ⬆️
...c/main/java/net/obvj/confectory/Configuration.java 100.00% <0.00%> (ø)
...ain/java/net/obvj/confectory/util/StringUtils.java 100.00% <0.00%> (ø)
...ava/net/obvj/confectory/util/GsonJsonProvider.java 100.00% <0.00%> (ø)
...confectory/merger/AbstractConfigurationMerger.java 100.00% <0.00%> (ø)
...nfectory/merger/JSONObjectConfigurationMerger.java 100.00% <0.00%> (ø)
...nfectory/merger/PropertiesConfigurationMerger.java 100.00% <0.00%> (ø)
...ctory/internal/helper/BeanConfigurationHelper.java 100.00% <0.00%> (ø)
...ctory/internal/helper/NullConfigurationHelper.java 100.00% <0.00%> (ø)
.../internal/helper/JsonSmartConfigurationHelper.java 100.00% <0.00%> (ø)
... and 12 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Owner Author

@oswaldobapvicjr oswaldobapvicjr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stingermissile, thanks for your support!
I see that you solved the problem. Good job! 👍
I have just a couple of comments before merging it to master. 😉
Any questions, please let me know.
Good luck!

@Override
public String toString()
{
return new StringBuilder().append(getClass().getSimpleName()).append("(").append(uuid).append(")")
Copy link
Owner Author

@oswaldobapvicjr oswaldobapvicjr Jul 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is duplicated code from the AbstractSource class, except for the UUID variable.
To avoid this code duplication, consider adding a new toString(String) method in the parent class that accepts either the UUID (here) or the parameter (parent).

@oswaldobapvicjr oswaldobapvicjr merged commit d7e2bf9 into oswaldobapvicjr:master Aug 7, 2022
@stingermissile
Copy link
Contributor

stingermissile commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avoid configuration data output via Configuration.toString()
2 participants