Browse Source

jfinal 4.9

James 5 years ago
parent
commit
e29a0ca888
1 changed files with 5 additions and 5 deletions
  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() {