Use multi-catch when possible
This commit is contained in:
+1
-4
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
+1
-4
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user