Skip to content

Commit 03e6f8a

Browse files
committed
add: 让SimpleDataSource也支持Closeable
1 parent d801f7d commit 03e6f8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/org/nutz/dao/impl/SimpleDataSource.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.nutz.dao.impl;
22

3+
import java.io.Closeable;
34
import java.io.PrintWriter;
45
import java.sql.Connection;
56
import java.sql.DriverManager;
@@ -20,7 +21,7 @@
2021
*
2122
* @author wendal(wendal1985@gmail.com)
2223
*/
23-
public class SimpleDataSource implements DataSource {
24+
public class SimpleDataSource implements DataSource, Closeable {
2425

2526
private static final Log log = Logs.get();
2627

0 commit comments

Comments
 (0)