File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
main/java/org/apache/commons/pool3/impl Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 7171 <property name =" ordered" value =" true" />
7272 <property name =" separated" value =" true" />
7373 </module >
74+ <module name =" ParenPad" />
7475 <module name =" TypecastParenPad" />
7576 </module >
7677
Original file line number Diff line number Diff line change @@ -953,13 +953,12 @@ public E pollLast() {
953953 * @return the unlinked element
954954 * @throws InterruptedException if the current thread is interrupted
955955 */
956- public E pollLast (final Duration timeout )
957- throws InterruptedException {
956+ public E pollLast (final Duration timeout ) throws InterruptedException {
958957 long nanos = timeout .toNanos ();
959958 lock .lockInterruptibly ();
960959 try {
961960 E x ;
962- while ( (x = unlinkLast ()) == null ) {
961+ while ((x = unlinkLast ()) == null ) {
963962 if (nanos <= 0 ) {
964963 return null ;
965964 }
@@ -1292,7 +1291,7 @@ public E takeFirst() throws InterruptedException {
12921291 lock .lock ();
12931292 try {
12941293 E x ;
1295- while ( (x = unlinkFirst ()) == null ) {
1294+ while ((x = unlinkFirst ()) == null ) {
12961295 notEmpty .await ();
12971296 }
12981297 return x ;
@@ -1312,7 +1311,7 @@ public E takeLast() throws InterruptedException {
13121311 lock .lock ();
13131312 try {
13141313 E x ;
1315- while ( (x = unlinkLast ()) == null ) {
1314+ while ((x = unlinkLast ()) == null ) {
13161315 notEmpty .await ();
13171316 }
13181317 return x ;
You can’t perform that action at this time.
0 commit comments