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

Comparing jsr166/src/main/java/util/concurrent/Semaphore.java (file contents):
Revision 1.37 by dl, Sat Jan 10 01:41:44 2004 UTC vs.
Revision 1.38 by dl, Sat Jan 10 20:37:03 2004 UTC

# Line 652 | Line 652 | public class Semaphore implements java.i
652      }
653  
654      /**
655 <     * Returns a string identifying this semaphore, as well as the number of permits.
656 <     * @return a string identifying this semaphore, as well as the number of permits.
655 >     * Returns a string identifying this semaphore, as well its state.
656 >     * The state, in brackets, includes the String
657 >     * &quot;Permits =&quot; followed by the number of permits.
658 >     * @return a string identifying this semaphore, as well as its
659 >     * state
660       */
661      public String toString() {
662          return super.toString() + "[Permits = " + sync.getPermits() + "]";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines