Skip to content

Commit 91dcd4e

Browse files
authored
Merge pull request #1692 from paopaofish/master
fix issue #1691
2 parents 9eeb15a + 1f9cbcc commit 91dcd4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/ibatis/datasource/pooled/PooledConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public boolean equals(Object obj) {
232232
@Override
233233
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
234234
String methodName = method.getName();
235-
if (CLOSE.hashCode() == methodName.hashCode() && CLOSE.equals(methodName)) {
235+
if (CLOSE.equals(methodName)) {
236236
dataSource.pushConnection(this);
237237
return null;
238238
}

0 commit comments

Comments
 (0)