Skip to content

Commit cb960a3

Browse files
fix: throw the specific exception
1 parent 68ce27c commit cb960a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/net/sf/jsqlparser/parser/CCJSqlParserUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ public static Statement parseStatement(CCJSqlParser parser, ExecutorService exec
299299
Statement statement = null;
300300
Future<Statement> future = executorService.submit(new Callable<Statement>() {
301301
@Override
302-
public Statement call() throws Exception {
302+
public Statement call() throws ParseException {
303303
return parser.Statement();
304304
}
305305
});
@@ -380,7 +380,7 @@ public static Statements parseStatements(CCJSqlParser parser, ExecutorService ex
380380
Statements statements = null;
381381
Future<Statements> future = executorService.submit(new Callable<Statements>() {
382382
@Override
383-
public Statements call() throws Exception {
383+
public Statements call() throws ParseException {
384384
return parser.Statements();
385385
}
386386
});

0 commit comments

Comments
 (0)