Details
-
Type:
Improvement
-
Status:
In Progress
-
Priority:
Major
-
Resolution: Unresolved
-
Labels:None
-
Number of attachments :
Description
Currently methods for adding leaf-nodes to output elements, like:
void SMOutputContainer.addCharacters(String str);
do no return anything, unlike add methods that add child elements.
But it would actually make sense to return 'this' from those methods; since that would allow chaining of calls to output adjacent leaf nodes (as well as adding an immediate child element after text).
This seems like a simple but useful improvement.
Activity
Tatu Saloranta
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | In Progress [ 3 ] |
One note: this change would be source-compatible but binary-incompatible change, which is bit unfortunate. At very least it means that it can only be done for a minor version upgrade (and ideally only for major).