提交 e39c638a authored 作者: Noel Grandin's avatar Noel Grandin

exceptions declared but not thrown

上级 2dafd45b
...@@ -17,7 +17,6 @@ import java.util.concurrent.ExecutionException; ...@@ -17,7 +17,6 @@ import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService; import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors; import java.util.concurrent.Executors;
import java.util.concurrent.Future; import java.util.concurrent.Future;
import org.h2.util.Tool; import org.h2.util.Tool;
/** /**
...@@ -155,7 +154,7 @@ public class CreateCluster extends Tool { ...@@ -155,7 +154,7 @@ public class CreateCluster extends Tool {
} }
private static Future<?> startWriter(final PipedReader pipeReader, private static Future<?> startWriter(final PipedReader pipeReader,
final Statement statSource) throws SQLException, IOException { final Statement statSource) {
final ExecutorService thread = Executors.newFixedThreadPool(1); final ExecutorService thread = Executors.newFixedThreadPool(1);
// Since exceptions cannot be thrown across thread boundaries, return // Since exceptions cannot be thrown across thread boundaries, return
......
...@@ -39,7 +39,6 @@ import java.util.Locale; ...@@ -39,7 +39,6 @@ import java.util.Locale;
import java.util.Properties; import java.util.Properties;
import java.util.TimeZone; import java.util.TimeZone;
import java.util.UUID; import java.util.UUID;
import org.h2.api.Aggregate; import org.h2.api.Aggregate;
import org.h2.api.AggregateFunction; import org.h2.api.AggregateFunction;
import org.h2.api.ErrorCode; import org.h2.api.ErrorCode;
...@@ -2152,8 +2151,7 @@ public class TestFunctions extends TestBase implements AggregateFunction { ...@@ -2152,8 +2151,7 @@ public class TestFunctions extends TestBase implements AggregateFunction {
conn.close(); conn.close();
} }
private void testOverrideAlias() private void testOverrideAlias() throws SQLException {
throws SQLException, InterruptedException {
deleteDb("functions"); deleteDb("functions");
Connection conn = getConnection("functions"); Connection conn = getConnection("functions");
conn.setAutoCommit(true); conn.setAutoCommit(true);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论