Skip to content

Commit

Permalink
Remove Unthrown Exceptions
Browse files Browse the repository at this point in the history
Removed some exceptions that were not actually thrown.
  • Loading branch information
hazendaz committed Sep 21, 2014
1 parent 9622d8e commit c69fdf3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private <E> List<E> selectList() throws SQLException {
}
}

private Executor newExecutor() throws SQLException {
private Executor newExecutor() {
final Environment environment = configuration.getEnvironment();
if (environment == null) {
throw new ExecutorException("ResultLoader could not load lazily. Environment was not configured.");
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/apache/ibatis/jdbc/ScriptRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ private boolean commandReadyToExecute(String trimmedLine) {
return !fullLineDelimiter && trimmedLine.contains(delimiter) || fullLineDelimiter && trimmedLine.equals(delimiter);
}

private void executeStatement(String command) throws SQLException, UnsupportedEncodingException {
private void executeStatement(String command) throws SQLException {
boolean hasResults = false;
Statement statement = connection.createStatement();
statement.setEscapeProcessing(escapeProcessing);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private void printColumnHeaders(ResultSetMetaData rsmd, int columnCount) throws
trace(row.toString(), false);
}

private void printColumnValues(int columnCount) throws SQLException {
private void printColumnValues(int columnCount) {
StringBuilder row = new StringBuilder();
row.append(" Row: ");
for (int i = 1; i <= columnCount; i++) {
Expand Down

0 comments on commit c69fdf3

Please sign in to comment.