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

Create shorter toString of components #3663

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Janmm14
Copy link
Contributor

@Janmm14 Janmm14 commented Apr 21, 2024

Done by:

  • stop mentioning null values
  • use shorter names
  • seamless integration of style's toString

Also use just one string builder and keep track of whether a comma is needed before the next property.

Extracted from #3625

@Janmm14 Janmm14 force-pushed the better-chat-component-tostring branch from 4009e28 to e58bb50 Compare April 21, 2024 10:33
- stop mentioning null values
- use shorter names
- seamless integration of style's toString

Also use just one string builder and keep track of whether a comma is needed before the next property.
@Janmm14 Janmm14 force-pushed the better-chat-component-tostring branch from e58bb50 to 0a97ab6 Compare April 21, 2024 10:36
@md-5
Copy link
Member

md-5 commented Apr 21, 2024

Why?

@Janmm14
Copy link
Contributor Author

Janmm14 commented Apr 21, 2024

Debugging purposes, and it doesn't hurt. I created it because previous impl (lombok) annoyed me during debugging legacy conversion improvement with all the xxx=null outputs.

@md-5
Copy link
Member

md-5 commented Apr 22, 2024

I'm not particularly keen on this. Lombok is there to eliminate this boilerplate

@Janmm14
Copy link
Contributor Author

Janmm14 commented Apr 23, 2024

Well then maybe not. Its not that important to be merged.

Sadly lombok has no way of excluding fields with null values.

@Janmm14
Copy link
Contributor Author

Janmm14 commented Apr 30, 2024

I've found a lombok ferature request to not print null values, but its just idling since 2021 projectlombok/lombok#3038

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.

None yet

2 participants