浏览代码

jfinal 4.9

James 5 年之前
父节点
当前提交
e29a0ca888
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      src/main/java/com/jfinal/plugin/activerecord/DbKit.java

+ 5 - 5
src/main/java/com/jfinal/plugin/activerecord/DbKit.java

@@ -109,13 +109,13 @@ public final class DbKit {
 		return modelToConfig.get(modelClass);
 	}
 	
-	static final void close(ResultSet rs, Statement st) {
-		if (rs != null) {try {rs.close();} catch (SQLException e) {throw new ActiveRecordException(e);}}
-		if (st != null) {try {st.close();} catch (SQLException e) {throw new ActiveRecordException(e);}}
+	static final void close(ResultSet rs, Statement st) throws SQLException {
+		if (rs != null) {rs.close();}
+		if (st != null) {st.close();}
 	}
 	
-	static final void close(Statement st) {
-		if (st != null) {try {st.close();} catch (SQLException e) {throw new ActiveRecordException(e);}}
+	static final void close(Statement st) throws SQLException {
+		if (st != null) {st.close();}
 	}
 	
 	public static Set<Map.Entry<String, Config>> getConfigSet() {