Skip to content

Commit 7ad8c2f

Browse files
author
Putthibong Boonbong
committed
Replace enum.equals() with ==
1 parent 4a1e4a8 commit 7ad8c2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/mybatis/spring/SqlSessionUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public static SqlSession getSqlSession(SqlSessionFactory sessionFactory, Executo
8989
logger.debug("Fetching SqlSession from current transaction");
9090
}
9191

92-
if (!holder.getExecutorType().equals(executorType)) {
92+
if (holder.getExecutorType() != executorType) {
9393
throw new TransientDataAccessResourceException(
9494
"cannot change the ExecutorType when there is an existing transaction");
9595
}

0 commit comments

Comments
 (0)