# | Line 150 | Line 150 | public class CountDownLatch { | |
---|---|---|
150 | int c = getState(); | |
151 | if (c == 0) | |
152 | return false; | |
153 | < | int nextc = c-1; |
153 | > | int nextc = c - 1; |
154 | if (compareAndSetState(c, nextc)) | |
155 | return nextc == 0; | |
156 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |