diff --git a/java/flight/flight-sql/src/test/java/org/apache/arrow/flight/sql/example/FlightSqlExample.java b/java/flight/flight-sql/src/test/java/org/apache/arrow/flight/sql/example/FlightSqlExample.java index 468620c2d2ead..d4dcc6aa71481 100644 --- a/java/flight/flight-sql/src/test/java/org/apache/arrow/flight/sql/example/FlightSqlExample.java +++ b/java/flight/flight-sql/src/test/java/org/apache/arrow/flight/sql/example/FlightSqlExample.java @@ -948,18 +948,12 @@ public Runnable acceptPutPreparedStatementQuery(CommandPreparedStatementQuery co } } - } catch (SQLException e) { + } catch (SQLException | IOException e) { ackStream.onError(CallStatus.INTERNAL .withDescription("Failed to bind parameters: " + e.getMessage()) .withCause(e) .toRuntimeException()); return; - } catch (IOException e) { - ackStream.onError(CallStatus.INTERNAL - .withDescription("Failed to bind parameters: " + e.getMessage()) - .withCause(e) - .toRuntimeException()); - return; } ackStream.onCompleted();