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

[thing] Add toString overrides to ThingImpl & BridgeImpl #4382

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

florian-h05
Copy link
Contributor

This is nice to have when working with Things in scripts.

I have chosen to not include the config because the config might include sensitive data like passwords.

This is nice to have when working with Things in scripts.

Signed-off-by: Florian Hotze <[email protected]>
@florian-h05 florian-h05 requested a review from a team as a code owner September 16, 2024 13:44
@florian-h05 florian-h05 changed the title [thing] Add toString override to ThingImpl & BridgeImpl [thing] Add toString overrides to ThingImpl & BridgeImpl Sep 16, 2024
Copy link
Member

@holgerfriedrich holgerfriedrich left a comment

Choose a reason for hiding this comment

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

Thanks, this seems useful.

I'd like to see the comment "Configuration is deliberately excluded because it might include sensitive data like passwords." in Javadoc - unfortunately, it will not be visible, as the Impl classes are not shown. Adding toString() to the interface Thing would probably clutter the interface too much.... So maybe just as a code comment in ThingImpl.java?

@holgerfriedrich holgerfriedrich added the enhancement An enhancement or new feature of the Core label Sep 18, 2024
Signed-off-by: Florian Hotze <[email protected]>
@florian-h05
Copy link
Contributor Author

So maybe just as a code comment in ThingImpl.java?

Done 👍

@holgerfriedrich
Copy link
Member

LGTM, thanks

@holgerfriedrich holgerfriedrich merged commit 437a885 into openhab:main Sep 19, 2024
5 checks passed
@holgerfriedrich holgerfriedrich added this to the 4.3 milestone Sep 19, 2024
@florian-h05 florian-h05 deleted the thing-tostring branch September 19, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature of the Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants