Please review: 4722265 (spec str) StringBuffer.ensureCapacity() should mention that capacity is mutable (original) (raw)

Jim Gish jim.gish at oracle.com
Wed Sep 19 12:25:46 UTC 2012


Thanks, guys.

I think I'll go with your suggested language David. I realize this might be somewhat unnecessary, but I'm trying to tighten up the javadoc in String as much as possible. I prefer to err on the side of completeness than leave doubts as to what's going on. As such, I don't mind adding a bit of verbiage to make things clear without having the user guess or hop around the docs to verify.

Cheers, Jim

On 09/18/2012 09:43 PM, David Holmes wrote:

Note that subsequent operations on this StringBuffer can reduce the actual capacity below that requested here.

-- Jim Gish | Consulting Member of Technical Staff | +1.781.442.0304 Oracle Java Platform Group | Core Libraries Team 35 Network Drive Burlington, MA 01803 jim.gish at oracle.com



More information about the core-libs-dev mailing list