CodeArea: What should SyntaxDecorator.createRichParagraph return for empty paragraphs?
Andy Goryachev
andy.goryachev at oracle.com
Fri May 2 15:36:41 UTC 2025
Definitely not null - the javadoc says nothing about null, perhaps it should be more explicit. The paragraph may contain paragraph attributes, even when empty.
-andy
From: openjfx-dev <openjfx-dev-retn at openjdk.org> on behalf of PavelTurk <pavelturk2000 at gmail.com>
Date: Friday, May 2, 2025 at 08:30
To: openjfx-dev at openjdk.org <openjfx-dev at openjdk.org>
Subject: CodeArea: What should SyntaxDecorator.createRichParagraph return for empty paragraphs?
Could anyone say what createRichParagraph should return if the paragraph is empty (length = 0)?
For example, RichParagraph.builder().build(), or null, or ?
Best regards, Pavel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20250502/4de68258/attachment.htm>
More information about the openjfx-dev
mailing list