missed (from git import) testdata files
authorMaxim.Mossienko <Maxim.Mossienko@jetbrains.com>
Tue, 29 Sep 2009 14:53:57 +0000 (18:53 +0400)
committerMaxim.Mossienko <Maxim.Mossienko@jetbrains.com>
Tue, 29 Sep 2009 14:53:57 +0000 (18:53 +0400)
plugins/IntentionPowerPak/src/intentionDescriptions/AddBracesIntention/after.java.template [new file with mode: 0644]
plugins/IntentionPowerPak/src/intentionDescriptions/AddBracesIntention/before.java.template [new file with mode: 0644]
plugins/IntentionPowerPak/src/intentionDescriptions/ExtractIncrementIntention/after.java.template [new file with mode: 0644]
plugins/IntentionPowerPak/src/intentionDescriptions/ExtractIncrementIntention/before.java.template [new file with mode: 0644]
plugins/IntentionPowerPak/src/intentionDescriptions/ReplaceConcatenationWithStringBufferIntention/after.java.template [new file with mode: 0644]
plugins/IntentionPowerPak/src/intentionDescriptions/ReplaceConcatenationWithStringBufferIntention/before.java.template [new file with mode: 0644]
plugins/IntentionPowerPak/src/intentionDescriptions/SimplifyIfElseIntention/after.java.template [new file with mode: 0644]
plugins/IntentionPowerPak/src/intentionDescriptions/SimplifyIfElseIntention/before.java.template [new file with mode: 0644]

diff --git a/plugins/IntentionPowerPak/src/intentionDescriptions/AddBracesIntention/after.java.template b/plugins/IntentionPowerPak/src/intentionDescriptions/AddBracesIntention/after.java.template
new file mode 100644 (file)
index 0000000..7777953
--- /dev/null
@@ -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 (file)
index 0000000..d45dc00
--- /dev/null
@@ -0,0 +1,6 @@
+public class X {
+  int f(boolean b) {
+    if (b) <spot>return 1</spot>;
+    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 (file)
index 0000000..24830de
--- /dev/null
@@ -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 (file)
index 0000000..20b5f42
--- /dev/null
@@ -0,0 +1,5 @@
+public class X {
+  int f() {
+      System.out.println(<spot>i++</spot>);
+  }
+}
\ 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 (file)
index 0000000..5c6b119
--- /dev/null
@@ -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 (file)
index 0000000..1dbd1ab
--- /dev/null
@@ -0,0 +1,5 @@
+public class X {
+  String f() {
+    return <spot>"1" + "2"</spot>;
+  }
+}
\ 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 (file)
index 0000000..286b7f2
--- /dev/null
@@ -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 (file)
index 0000000..c23f513
--- /dev/null
@@ -0,0 +1,8 @@
+public class X {
+  boolean f(boolean a) {
+    <spot>if</spot> (a) {
+      return true;
+    }
+    return false;
+  }
+}
\ No newline at end of file