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

Minor documentation correction for config.root().render() under "Debuggin… #569

Merged
merged 1 commit into from
Jul 13, 2018

Conversation

ajorpheus
Copy link
Contributor

…g Your Configuration"

Looking at the java/scaladoc of ConfigValue.render() (https://github.com/lightbend/config/blob/master/config/src/main/java/com/typesafe/config/ConfigValue.java#L48-L50)

and then looking at the implementation of render() itself:
https://github.com/lightbend/config/blob/master/config/src/main/java/com/typesafe/config/impl/AbstractConfigValue.java#L364-L374

it appears that config.root().render() returns a string that must be printed out, logged etc. Current documentation implies that calling this method will print out the string which seems to be misleading.

…g Your Configuration"

Looking at the java/scaladoc of ConfigValue.render()  (https://github.com/lightbend/config/blob/master/config/src/main/java/com/typesafe/config/ConfigValue.java#L48-L50)  

and then looking at the implementation of `render()` itself:
https://github.com/lightbend/config/blob/master/config/src/main/java/com/typesafe/config/impl/AbstractConfigValue.java#L364-L374

it appears that `config.root().render()` returns a string that must be printed out, logged etc. Current documentation implies that calling this method will print out the string which seems to be misleading.
@ajorpheus ajorpheus changed the title Minor correction to the use of config.root().render() under "Debuggin… Minor documentation correction for config.root().render() under "Debuggin… Jul 13, 2018
Copy link
Collaborator

@havocp havocp left a comment

Choose a reason for hiding this comment

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

Makes sense - Thanks!

@havocp havocp merged commit c6d1ed4 into lightbend:master Jul 13, 2018
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.

2 participants