Skip to content

Commit

Permalink
makes catch more condensed by using multi-catch
Browse files Browse the repository at this point in the history
  • Loading branch information
zapodot committed Jan 12, 2015
1 parent e511e63 commit 687d2e8
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@ private static ConnectionProxy createProxyInstance() {
final Constructor<?> constructor = createConstructorForProxyClass();
try {
return (ConnectionProxy) constructor.newInstance();
} catch (InstantiationException e) {
throw new IllegalStateException(e);
} catch (IllegalAccessException e) {
throw new IllegalStateException(e);
} catch (InvocationTargetException e) {
} catch (InstantiationException | IllegalAccessException | InvocationTargetException e) {
throw new IllegalStateException(e);
}
}
Expand Down

0 comments on commit 687d2e8

Please sign in to comment.