### _Why are the changes needed?_ - use `ListBuffer` instead of `ArrayBuffer` for inner string buffer, to minimize allocations for resizing - handy `+=` operator in chaining style without explicit quotes, to make the user focus on content assembly and less distraction of quoting - make `MarkdownBuilder` extending `Growable`, to utilize semantic operators like `+=` and `++=` which is unified inside for single or batch operation - use `this +=` rather than `line(...)` , to reflect side effects in semantic way - change list to stream for output comparison - remove unused methods ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [ ] [Run test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests) locally before make a pull request Closes #5127 from bowenliang123/md-buff. Closes #5127 458e18c3d [liangbowen] Improvements for markdown builder Authored-by: liangbowen <liangbowen@gf.com.cn> Signed-off-by: liangbowen <liangbowen@gf.com.cn> |
||
|---|---|---|
| .. | ||
| src | ||
| web-ui | ||
| pom.xml | ||