# | Line 123 | Line 123 | import java.util.concurrent.locks.Abstra | |
---|---|---|
123 | * | |
124 | * @since 1.5 | |
125 | * @author Doug Lea | |
126 | – | * |
126 | */ | |
127 | ||
128 | public class Semaphore implements java.io.Serializable { | |
# | Line 461 | Line 460 | public class Semaphore implements java.i | |
460 | * | |
461 | * @param permits the number of permits to acquire | |
462 | * @throws IllegalArgumentException if {@code permits} is negative | |
464 | – | * |
463 | */ | |
464 | public void acquireUninterruptibly(int permits) { | |
465 | if (permits < 0) throw new IllegalArgumentException(); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |