ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/CountDownLatch.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/CountDownLatch.java (file contents):
Revision 1.35 by dl, Fri Mar 27 10:39:07 2009 UTC vs.
Revision 1.36 by jsr166, Mon Nov 29 20:58:06 2010 UTC

# Line 146 | Line 146 | public class CountDownLatch {
146          }
147  
148          protected int tryAcquireShared(int acquires) {
149 <            return getState() == 0? 1 : -1;
149 >            return (getState() == 0) ? 1 : -1;
150          }
151  
152          protected boolean tryReleaseShared(int releases) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines