You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2016/06/02 11:03:59 UTC

[jira] [Resolved] (LANG-1243) Simplify ArrayUtils removeElements by using new decrementAndGet() method

     [ https://issues.apache.org/jira/browse/LANG-1243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb resolved LANG-1243.
------------------------
       Resolution: Fixed
    Fix Version/s: 3.5

LANG-1243 Simplify ArrayUtils removeElements by using new
decrementAndGet() method

Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/844b2901
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/844b2901
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/844b2901

> Simplify ArrayUtils removeElements by using new decrementAndGet() method
> ------------------------------------------------------------------------
>
>                 Key: LANG-1243
>                 URL: https://issues.apache.org/jira/browse/LANG-1243
>             Project: Commons Lang
>          Issue Type: Improvement
>    Affects Versions: 3.4
>            Reporter: Sebb
>             Fix For: 3.5
>
>
> As the subject says - the new decrementAndGet() method can be used to simplify the following sequence:
> {code}
>                 count.decrement();
>                 if (count.intValue() == 0) {
> {code}
> as follows
> {code}
>                 if (count.decrementAndGet() == 0) {
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)