Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.0-JSR-2
-
Fix Version/s: 1.0-JSR-3
-
Component/s: groovy-jdk
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
Strings, List, etc. all have a GDK method size() but StringBuffer only has 'getSize()' or 'size' respectively
x = new StringBuffer()
assert x.size() == x.size
x = new StringBuffer('some text')
assert x.size() == x.size
Maybe size() name is not suitable. JDK has another name length() to Returns the length (character count) of this string buffer.