Skip to content

Commit abe30a8

Browse files
committed
add the synchronized keyword to getDriver()
1 parent ea6fe1f commit abe30a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/ibatis/datasource/unpooled/UnpooledDataSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public void setDriverProperties(Properties driverProperties) {
136136
this.driverProperties = driverProperties;
137137
}
138138

139-
public String getDriver() {
139+
public synchronized String getDriver() {
140140
return driver;
141141
}
142142

0 commit comments

Comments
 (0)