[
https://issues.apache.org/jira/browse/GROOVY-11656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King closed GROOVY-11656.
------------------------------
> Create SGM#getLength methods for StringBuilder/StringBuffer
> -----------------------------------------------------------
>
> Key: GROOVY-11656
> URL: https://issues.apache.org/jira/browse/GROOVY-11656
> Project: Groovy
> Issue Type: New Feature
> Reporter: Paul King
> Assignee: Paul King
> Priority: Major
> Fix For: 5.0.0-beta-1
>
>
> This would allow arithmetic assignment operators to be used:
> {code:groovy}
> def sb = new StringBuilder()
> sb << 'foobar'
> sb.length -= 3
> assert sb.toString() == 'foo'
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)