Confusing javadoc on a method java.lang.StringBuilder#readObject

Andrey Turbanov turbanoff at
Wed Sep 8 20:28:56 UTC 2021

I found a confusing javadoc of the method java.lang.StringBuilder#readObject:

"readObject is called to restore the state of the StringBuffer from a stream."

I believe there should be "StringBuilder" instead of "StringBuffer".

Andrey Turbanov

More information about the core-libs-dev mailing list