Skip to content

Commit 1027c8c

Browse files
authored
Add 'throws' declarations for compatibility (#586)
1 parent 84c76a1 commit 1027c8c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doma-core/src/main/java/org/seasar/doma/jdbc/SimpleDataSource.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* <p>It is assumed that this object is used only in simple applications. In production environment,
1818
* you should use the {@link DataSource} implementation that provides connection pooling.
1919
*/
20+
@SuppressWarnings("RedundantThrows")
2021
public class SimpleDataSource implements DataSource {
2122

2223
/**
@@ -148,15 +149,15 @@ protected Connection getConnectionInternal(Properties info) throws SQLException
148149
}
149150

150151
@Override
151-
public PrintWriter getLogWriter() {
152+
public PrintWriter getLogWriter() throws SQLException {
152153
return null;
153154
}
154155

155156
@Override
156-
public void setLogWriter(PrintWriter out) {}
157+
public void setLogWriter(PrintWriter out) throws SQLException {}
157158

158159
@Override
159-
public boolean isWrapperFor(Class<?> iface) {
160+
public boolean isWrapperFor(Class<?> iface) throws SQLException {
160161
return iface != null && iface.isAssignableFrom(getClass());
161162
}
162163

0 commit comments

Comments
 (0)