diff --git a/idea/src/org/jetbrains/jet/plugin/intentions/ConvertAssertToIfWithThrowIntention.kt b/idea/src/org/jetbrains/jet/plugin/intentions/ConvertAssertToIfWithThrowIntention.kt index 6fea99b3253..27915572c67 100644 --- a/idea/src/org/jetbrains/jet/plugin/intentions/ConvertAssertToIfWithThrowIntention.kt +++ b/idea/src/org/jetbrains/jet/plugin/intentions/ConvertAssertToIfWithThrowIntention.kt @@ -31,6 +31,7 @@ import org.jetbrains.jet.lang.psi.JetDotQualifiedExpression import org.jetbrains.jet.lang.resolve.bindingContextUtil.getResolvedCall import org.jetbrains.jet.lang.psi.JetBlockExpression import org.jetbrains.jet.lang.psi.JetThrowExpression +import org.jetbrains.jet.lang.psi.psiUtil.replaced public class ConvertAssertToIfWithThrowIntention : JetSelfTargetingIntention( "convert.assert.to.if.with.throw", javaClass()) { @@ -55,19 +56,12 @@ public class ConvertAssertToIfWithThrowIntention : JetSelfTargetingIntention) { assert(false, "mess": kotlin.String) } diff --git a/idea/testData/intentions/convertAssertToIf/doNotShortenReferenceInsideMessage.kt.after b/idea/testData/intentions/convertAssertToIf/doNotShortenReferenceInsideMessage.kt.after index ac877ed53ca..f0d2599f5fe 100644 --- a/idea/testData/intentions/convertAssertToIf/doNotShortenReferenceInsideMessage.kt.after +++ b/idea/testData/intentions/convertAssertToIf/doNotShortenReferenceInsideMessage.kt.after @@ -1,8 +1,6 @@ -//TODO: should not shorten references here - fun main(args: Array) { if (!false) { - throw AssertionError("mess": String) + throw AssertionError("mess": kotlin.String) } }