Skip to content

Commit 77c1f50

Browse files
committed
imported Proxy static methods
1 parent afff2a2 commit 77c1f50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616
package org.mybatis.spring;
1717

18+
import static java.lang.reflect.Proxy.newProxyInstance;
1819
import static org.apache.ibatis.reflection.ExceptionUtil.unwrapThrowable;
1920
import static org.mybatis.spring.SqlSessionUtils.closeSqlSession;
2021
import static org.mybatis.spring.SqlSessionUtils.getSqlSession;
@@ -23,7 +24,6 @@
2324

2425
import java.lang.reflect.InvocationHandler;
2526
import java.lang.reflect.Method;
26-
import java.lang.reflect.Proxy;
2727
import java.sql.Connection;
2828
import java.util.List;
2929
import java.util.Map;
@@ -128,7 +128,7 @@ public SqlSessionTemplate(SqlSessionFactory sqlSessionFactory, ExecutorType exec
128128
this.sqlSessionFactory = sqlSessionFactory;
129129
this.executorType = executorType;
130130
this.exceptionTranslator = exceptionTranslator;
131-
this.sqlSessionProxy = (SqlSession) Proxy.newProxyInstance(
131+
this.sqlSessionProxy = (SqlSession) newProxyInstance(
132132
SqlSessionFactory.class.getClassLoader(),
133133
new Class[] { SqlSession.class },
134134
new SqlSessionInterceptor());

0 commit comments

Comments
 (0)