Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansi should implement java.lang.Appendable #168

Closed
buko opened this issue Mar 25, 2020 · 0 comments · May be fixed by gnodet/jansi#1
Closed

Ansi should implement java.lang.Appendable #168

buko opened this issue Mar 25, 2020 · 0 comments · May be fixed by gnodet/jansi#1

Comments

@buko
Copy link

buko commented Mar 25, 2020

Methods like DateTimeFormatter#formatTo take a java.lang.Appendable. Normally this is just a StringBuilder. The Ansi class has an underlying StringBuilder but provides no accessor for its underlying StringBuilder -- which is fine, in this case StringBuilder is just an implementation detail -- but this makes the Ansi class unergonomic when using code that expects an Appendable. I think Ansi should implement Appendable and therefore it should be possible to pass to methods like formatTo that expect an Appendable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant