RFR: 8371070: RichParagraph enhancements [v8]

Andy Goryachev angorya at openjdk.org
Mon Dec 22 22:22:32 UTC 2025


On Mon, 22 Dec 2025 22:12:06 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

>> This method indeed builds the paragraph, but instead of returning the paragraph itself, it returns the builder with the data - so a custom model can override it to apply post-processing, since the RichParagraph itself is immutable.
>
> But it doesn't call the build method. The caller does (see the getParagraph method above this one). So the method seems misnamed to me.

It does call RParagraph.buildParagraph() L96.

I't an extra step to return the builder instead of the immutable paragraph as before.

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1966#discussion_r2641412081


More information about the openjfx-dev mailing list