diff --git a/plugins/IntentionPowerPak/src/intentionDescriptions/AddBracesIntention/after.java.template b/plugins/IntentionPowerPak/src/intentionDescriptions/AddBracesIntention/after.java.template new file mode 100644 index 000000000000..7777953c60cc --- /dev/null +++ b/plugins/IntentionPowerPak/src/intentionDescriptions/AddBracesIntention/after.java.template @@ -0,0 +1,8 @@ +public class X { + int f(boolean b) { + if (b) { + return 1; + } + return 0; + } +} \ No newline at end of file diff --git a/plugins/IntentionPowerPak/src/intentionDescriptions/AddBracesIntention/before.java.template b/plugins/IntentionPowerPak/src/intentionDescriptions/AddBracesIntention/before.java.template new file mode 100644 index 000000000000..d45dc00808ae --- /dev/null +++ b/plugins/IntentionPowerPak/src/intentionDescriptions/AddBracesIntention/before.java.template @@ -0,0 +1,6 @@ +public class X { + int f(boolean b) { + if (b) return 1; + return 0; + } +} \ No newline at end of file diff --git a/plugins/IntentionPowerPak/src/intentionDescriptions/ExtractIncrementIntention/after.java.template b/plugins/IntentionPowerPak/src/intentionDescriptions/ExtractIncrementIntention/after.java.template new file mode 100644 index 000000000000..24830dee7c05 --- /dev/null +++ b/plugins/IntentionPowerPak/src/intentionDescriptions/ExtractIncrementIntention/after.java.template @@ -0,0 +1,6 @@ +public class X { + int f() { + System.out.println(i); + i++; + } +} \ No newline at end of file diff --git a/plugins/IntentionPowerPak/src/intentionDescriptions/ExtractIncrementIntention/before.java.template b/plugins/IntentionPowerPak/src/intentionDescriptions/ExtractIncrementIntention/before.java.template new file mode 100644 index 000000000000..20b5f42e2118 --- /dev/null +++ b/plugins/IntentionPowerPak/src/intentionDescriptions/ExtractIncrementIntention/before.java.template @@ -0,0 +1,5 @@ +public class X { + int f() { + System.out.println(i++); + } +} \ No newline at end of file diff --git a/plugins/IntentionPowerPak/src/intentionDescriptions/ReplaceConcatenationWithStringBufferIntention/after.java.template b/plugins/IntentionPowerPak/src/intentionDescriptions/ReplaceConcatenationWithStringBufferIntention/after.java.template new file mode 100644 index 000000000000..5c6b11913b7b --- /dev/null +++ b/plugins/IntentionPowerPak/src/intentionDescriptions/ReplaceConcatenationWithStringBufferIntention/after.java.template @@ -0,0 +1,5 @@ +public class X { + String f() { + return new StringBuffer().append("1").append("2").toString(); + } +} \ No newline at end of file diff --git a/plugins/IntentionPowerPak/src/intentionDescriptions/ReplaceConcatenationWithStringBufferIntention/before.java.template b/plugins/IntentionPowerPak/src/intentionDescriptions/ReplaceConcatenationWithStringBufferIntention/before.java.template new file mode 100644 index 000000000000..1dbd1ab1669b --- /dev/null +++ b/plugins/IntentionPowerPak/src/intentionDescriptions/ReplaceConcatenationWithStringBufferIntention/before.java.template @@ -0,0 +1,5 @@ +public class X { + String f() { + return "1" + "2"; + } +} \ No newline at end of file diff --git a/plugins/IntentionPowerPak/src/intentionDescriptions/SimplifyIfElseIntention/after.java.template b/plugins/IntentionPowerPak/src/intentionDescriptions/SimplifyIfElseIntention/after.java.template new file mode 100644 index 000000000000..286b7f258199 --- /dev/null +++ b/plugins/IntentionPowerPak/src/intentionDescriptions/SimplifyIfElseIntention/after.java.template @@ -0,0 +1,5 @@ +public class X { + boolean f(boolean a) { + return a; + } +} \ No newline at end of file diff --git a/plugins/IntentionPowerPak/src/intentionDescriptions/SimplifyIfElseIntention/before.java.template b/plugins/IntentionPowerPak/src/intentionDescriptions/SimplifyIfElseIntention/before.java.template new file mode 100644 index 000000000000..c23f51396417 --- /dev/null +++ b/plugins/IntentionPowerPak/src/intentionDescriptions/SimplifyIfElseIntention/before.java.template @@ -0,0 +1,8 @@ +public class X { + boolean f(boolean a) { + if (a) { + return true; + } + return false; + } +} \ No newline at end of file