From e5d40b564285c602e985e598bc0fbdf16b4d2acf Mon Sep 17 00:00:00 2001 From: "Maxim.Mossienko" Date: Tue, 29 Sep 2009 18:53:57 +0400 Subject: [PATCH] missed (from git import) testdata files --- .../AddBracesIntention/after.java.template | 8 ++++++++ .../AddBracesIntention/before.java.template | 6 ++++++ .../ExtractIncrementIntention/after.java.template | 6 ++++++ .../ExtractIncrementIntention/before.java.template | 5 +++++ .../after.java.template | 5 +++++ .../before.java.template | 5 +++++ .../SimplifyIfElseIntention/after.java.template | 5 +++++ .../SimplifyIfElseIntention/before.java.template | 8 ++++++++ 8 files changed, 48 insertions(+) create mode 100644 plugins/IntentionPowerPak/src/intentionDescriptions/AddBracesIntention/after.java.template create mode 100644 plugins/IntentionPowerPak/src/intentionDescriptions/AddBracesIntention/before.java.template create mode 100644 plugins/IntentionPowerPak/src/intentionDescriptions/ExtractIncrementIntention/after.java.template create mode 100644 plugins/IntentionPowerPak/src/intentionDescriptions/ExtractIncrementIntention/before.java.template create mode 100644 plugins/IntentionPowerPak/src/intentionDescriptions/ReplaceConcatenationWithStringBufferIntention/after.java.template create mode 100644 plugins/IntentionPowerPak/src/intentionDescriptions/ReplaceConcatenationWithStringBufferIntention/before.java.template create mode 100644 plugins/IntentionPowerPak/src/intentionDescriptions/SimplifyIfElseIntention/after.java.template create mode 100644 plugins/IntentionPowerPak/src/intentionDescriptions/SimplifyIfElseIntention/before.java.template 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