Skip to content

Commit b598a27

Browse files
authored
Merge pull request #1671 from donhui/0920
add the synchronized keyword to getDriver()
2 parents cbee804 + abe30a8 commit b598a27

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

+1-1
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)