Use multi-catch when possible

This commit is contained in:
Alexander Udalov
2017-04-01 00:33:19 +03:00
parent 34f0576135
commit 6aa0f7bb65
14 changed files with 16 additions and 68 deletions
@@ -145,10 +145,7 @@ public class ConstraintsUtil {
sb.append("\n");
}
}
catch (IllegalAccessException e) {
sb.append(e.getMessage());
}
catch (InvocationTargetException e) {
catch (IllegalAccessException | InvocationTargetException e) {
sb.append(e.getMessage());
}
}
@@ -216,10 +216,7 @@ public abstract class ExpressionTypingVisitorDispatcher extends KtVisitor<Kotlin
}
return result;
}
catch (ProcessCanceledException e) {
throw e;
}
catch (KotlinFrontEndException e) {
catch (ProcessCanceledException | KotlinFrontEndException e) {
throw e;
}
catch (Throwable e) {