From 361c81bbe5298710e636ef3f4f5be4bdbb093bc1 Mon Sep 17 00:00:00 2001 From: Zalim Bashorov Date: Wed, 16 Apr 2014 18:14:11 +0400 Subject: [PATCH] IDEA plugin: fixed using SimplifyNegatedBinaryExpressionIntention and dependent tests. + minor reformat. --- .../ConvertAssertToIfWithThrowIntention.kt | 65 ++++++++++--------- 1 file changed, 34 insertions(+), 31 deletions(-) diff --git a/idea/src/org/jetbrains/jet/plugin/intentions/ConvertAssertToIfWithThrowIntention.kt b/idea/src/org/jetbrains/jet/plugin/intentions/ConvertAssertToIfWithThrowIntention.kt index 7c0e30634b5..5dd8458611d 100644 --- a/idea/src/org/jetbrains/jet/plugin/intentions/ConvertAssertToIfWithThrowIntention.kt +++ b/idea/src/org/jetbrains/jet/plugin/intentions/ConvertAssertToIfWithThrowIntention.kt @@ -22,15 +22,12 @@ import org.jetbrains.jet.plugin.project.AnalyzerFacadeWithCache import org.jetbrains.jet.lang.resolve.BindingContext import org.jetbrains.jet.lang.psi.JetPsiFactory import org.jetbrains.jet.lang.psi.JetPrefixExpression -import org.jetbrains.jet.lang.psi.JetFunctionLiteralExpression -import org.jetbrains.jet.lang.psi.JetBinaryExpression import org.jetbrains.jet.plugin.codeInsight.ShortenReferences import org.jetbrains.jet.lang.psi.JetCallableReferenceExpression import org.jetbrains.jet.lang.resolve.DescriptorUtils -import org.jetbrains.jet.lang.psi.JetExpression -import org.jetbrains.jet.lang.psi.JetSimpleNameExpression import kotlin.properties.Delegates import org.jetbrains.jet.lang.types.lang.KotlinBuiltIns +import org.jetbrains.jet.lang.psi.JetIfExpression public class ConvertAssertToIfWithThrowIntention : JetSelfTargetingIntention( "convert.assert.to.if.with.throw", javaClass()) { @@ -63,38 +60,44 @@ public class ConvertAssertToIfWithThrowIntention : JetSelfTargetingIntention