Skip to content

Conversation

@Mo-Greene
Copy link
Contributor

The documentation example for UserMessage incorrectly used a private constructor. This commit updates the example to use the public builder() method, making the code functional.


I've submitted this fix because the example as written used a private constructor and appeared to be non-functional.

However, I did consider that this might have been an intentional choice—perhaps to show a simpler, POJO-like constructor pattern for teaching purposes, even if it wasn't runnable.

If that is the case and you'd prefer to keep the original example for pedagogical reasons, please let me know, and I'll be happy to close this pull request.

The documentation example for UserMessage incorrectly used a private
constructor. This commit updates the example to use the public
`builder()` method, making the code functional.

Signed-off-by: MoGreene <[email protected]>
@ilayaperumalg ilayaperumalg self-assigned this Nov 11, 2025
@ilayaperumalg ilayaperumalg added the documentation Improvements or additions to documentation label Nov 11, 2025
@ilayaperumalg ilayaperumalg added this to the 1.1.0 milestone Nov 11, 2025
@ilayaperumalg
Copy link
Member

@Mo-Greene Thanks for catching and the PR fixing the documentation!

@ilayaperumalg
Copy link
Member

Rebased and merged as 68adc26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants