Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.4
-
None
-
None
Description
As the subject says - the new decrementAndGet() method can be used to simplify the following sequence:
count.decrement();
if (count.intValue() == 0) {
as follows
if (count.decrementAndGet() == 0) {