From 9b32bb889451b372829d7611c5b31b0daa46171e Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Mon, 1 Jun 2015 16:38:26 +0300 Subject: [PATCH] Fixed EA-68922 --- .../intentions/DeprecatedCallableAddReplaceWithIntention.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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