Skip to content

Commit 9990dd7

Browse files
committed
use final lockšŸ‘
1 parent 8820b11 commit 9990dd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ā€Žsrc/main/java/org/apache/ibatis/datasource/pooled/PooledDataSource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ public class PooledDataSource implements DataSource {
6060

6161
private int expectedConnectionTypeCode;
6262

63-
private Lock lock = new ReentrantLock();
64-
private Condition condition = lock.newCondition();
63+
private final Lock lock = new ReentrantLock();
64+
private final Condition condition = lock.newCondition();
6565

6666
public PooledDataSource() {
6767
dataSource = new UnpooledDataSource();

0 commit comments

Comments
Ā (0)