diff --git a/idea/src/org/jetbrains/kotlin/idea/intentions/DeprecatedCallableAddReplaceWithIntention.kt b/idea/src/org/jetbrains/kotlin/idea/intentions/DeprecatedCallableAddReplaceWithIntention.kt index ccb406ce7b7..bf4b8904e42 100644 --- a/idea/src/org/jetbrains/kotlin/idea/intentions/DeprecatedCallableAddReplaceWithIntention.kt +++ b/idea/src/org/jetbrains/kotlin/idea/intentions/DeprecatedCallableAddReplaceWithIntention.kt @@ -169,7 +169,7 @@ public class DeprecatedCallableAddReplaceWithIntention : JetSelfTargetingRangeIn var expression = try { JetPsiFactory(this).createExpression(text.replace('\n', ' ')) } - catch(e: Exception) { // does not parse in one line + catch(e: Throwable) { // does not parse in one line return null } expression = CodeStyleManager.getInstance(getProject()).reformat(expression, true) as JetExpression