On Sat, 1 Apr 2023 17:34:37 GMT, Joe Darcy <da...@openjdk.org> wrote:

> The StringBuilder and StringBuffer classes are Appendable by virtue of from 
> subclasses their non-public superclass AbstractStringBuilder.
> 
> It is slightly clearer to declare StringBuilder and StringBuffer to directly 
> implement Appendable, as they already directly implement the CharSequence 
> interface also implemented by their superclass.
> 
> There are no other interfaces implemented by AbstractStringBuilder other than 
> Appendable and CharSequence.
> 
> Please also review the CSR https://bugs.openjdk.org/browse/JDK-8305408

This pull request has now been integrated.

Changeset: df819cfa
Author:    Joe Darcy <da...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/df819cfa5a0330205fed89923df6dd5f7d5ffb45
Stats:     4 lines in 2 files changed: 0 ins; 0 del; 4 mod

8304945: StringBuilder and StringBuffer should implement Appendable explicitly

Reviewed-by: alanb, rriggs

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

PR: https://git.openjdk.org/jdk/pull/13278

Reply via email to