Skip to content

Commit e44cdd1

Browse files
committed
Fix ParenPad
1 parent 5267e87 commit e44cdd1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/conf/checkstyle.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
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

src/main/java/org/apache/commons/pool3/impl/LinkedBlockingDeque.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)