Skip to content

Commit

Permalink
#27: Removed throws declarations for runtime exceptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
redcatbear committed Feb 25, 2019
1 parent fcdeb03 commit d2c05a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/exasol/sql/expression/BooleanTerm.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ public static BooleanExpression ge(final String left, final String right) {
* @return instance of either {@link And}, {@link Or} or {@link Not}
* @throws IllegalArgumentException if the operator is unknown or null
*/
public static BooleanExpression operation(final String operator, final BooleanExpression... expressions)
throws IllegalArgumentException {
public static BooleanExpression operation(final String operator, final BooleanExpression... expressions) {
switch (operator.toLowerCase()) {
case "and":
return new And(expressions);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/exasol/util/TreeNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public interface TreeNode {
* @return child node at position
* @throws IndexOutOfBoundsException if the index is out of range (index < 0 || index ≥ size())
*/
public TreeNode getChild(int index) throws IndexOutOfBoundsException;
public TreeNode getChild(int index);

/**
* Check whether this node is the root of the tree.
Expand Down

0 comments on commit d2c05a7

Please sign in to comment.