Avoiding API Methods with Implicit Object Allocations
Some Java API classes provide protected reference to internal object state
In that case, extending target class and adding method that accesses internal object state through protected reference directly avoids object allocation + copy operation
Example: ByteArrayOutputStream contains protected buf reference, extend it into MyByteArrayOutputStream