Suggestion: Add the method isEmpty in the classes StringBuilder and StringBuffer
Hildeberto Mendonça
me at hildeberto.com
Mon Feb 11 18:32:58 UTC 2013
On Mon, Feb 11, 2013 at 6:08 PM, Vitaly Davidovich <vitalyd at gmail.com>wrote:
> It should be isEmpty() -- empty() is usually for returning empty versions
> of the class. isEmpty is also consistent with String.
>
Yes. Also, being consistent with String helps to reduce effort during
refactoring.
--
Hildeberto Mendonça, Ph.D
Blog: http://www.hildeberto.com
Twitter: https://twitter.com/htmfilho <http://www.cejug.org>
More information about the core-libs-dev
mailing list