From b6f9640a91db871f96fcd44e3ee3d0874c6f6f7a Mon Sep 17 00:00:00 2001 From: Max Medvedev Date: Mon, 6 May 2013 09:17:48 +0400 Subject: [PATCH] description for flip-if --- .../FlipIfIntention/after.groovy.template | 8 +++++--- .../FlipIfIntention/before.groovy.template | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/plugins/groovy/resources/intentionDescriptions/FlipIfIntention/after.groovy.template b/plugins/groovy/resources/intentionDescriptions/FlipIfIntention/after.groovy.template index 06fb6d636fc7..25d459273914 100644 --- a/plugins/groovy/resources/intentionDescriptions/FlipIfIntention/after.groovy.template +++ b/plugins/groovy/resources/intentionDescriptions/FlipIfIntention/after.groovy.template @@ -1,4 +1,6 @@ -public class X { - void f(a, b) { - if (b &&a) return; +if (cond2) { + doSomething2() } +else if (cond1) { + doSomething1() +} \ No newline at end of file diff --git a/plugins/groovy/resources/intentionDescriptions/FlipIfIntention/before.groovy.template b/plugins/groovy/resources/intentionDescriptions/FlipIfIntention/before.groovy.template index b0729abb52a1..75c88f5ed9f2 100644 --- a/plugins/groovy/resources/intentionDescriptions/FlipIfIntention/before.groovy.template +++ b/plugins/groovy/resources/intentionDescriptions/FlipIfIntention/before.groovy.template @@ -1,4 +1,6 @@ -public class X { - void f(a, b) { - if (a && b) return; +if (cond1) { + doSomething1() } +else if (cond2) { + doSomething2() +} \ No newline at end of file