@@ -575,7 +575,7 @@ public E getLast() {
575575 *
576576 * @return number of threads waiting on this deque's notEmpty condition.
577577 */
578- public int getTakeQueueLength () {
578+ int getTakeQueueLength () {
579579 lock .lock ();
580580 try {
581581 return lock .getWaitQueueLength (notEmpty );
@@ -590,7 +590,7 @@ public int getTakeQueueLength() {
590590 *
591591 * @return true if there is at least one thread waiting on this deque's notEmpty condition.
592592 */
593- public boolean hasTakeWaiters () {
593+ boolean hasTakeWaiters () {
594594 lock .lock ();
595595 try {
596596 return lock .hasWaiters (notEmpty );
@@ -603,7 +603,7 @@ public boolean hasTakeWaiters() {
603603 * Interrupts the threads currently waiting to take an object from the pool. See disclaimer on accuracy in
604604 * {@link java.util.concurrent.locks.ReentrantLock#getWaitingThreads(Condition)}.
605605 */
606- public void interuptTakeWaiters () {
606+ void interuptTakeWaiters () {
607607 lock .lock ();
608608 try {
609609 lock .interruptWaiters (notEmpty );
@@ -745,7 +745,7 @@ public boolean offerFirst(final E e) {
745745 * @throws InterruptedException if the thread is interrupted whilst waiting
746746 * for space
747747 */
748- public boolean offerFirst (final E e , final Duration timeout ) throws InterruptedException {
748+ boolean offerFirst (final E e , final Duration timeout ) throws InterruptedException {
749749 Objects .requireNonNull (e , "e" );
750750 long nanos = timeout .toNanos ();
751751 lock .lockInterruptibly ();
@@ -963,7 +963,7 @@ public E pollLast() {
963963 * @return the unlinked element
964964 * @throws InterruptedException if the current thread is interrupted
965965 */
966- public E pollLast (final Duration timeout )
966+ E pollLast (final Duration timeout )
967967 throws InterruptedException {
968968 long nanos = timeout .toNanos ();
969969 lock .lockInterruptibly ();
0 commit comments