Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'testplugins/org.eclipse.jdt.ui.tests.refactoring/resources/ExtractMethodWorkSpace/ExtractMethodTests/BBB.java')
-rw-r--r--testplugins/org.eclipse.jdt.ui.tests.refactoring/resources/ExtractMethodWorkSpace/ExtractMethodTests/BBB.java46
1 files changed, 46 insertions, 0 deletions
diff --git a/testplugins/org.eclipse.jdt.ui.tests.refactoring/resources/ExtractMethodWorkSpace/ExtractMethodTests/BBB.java b/testplugins/org.eclipse.jdt.ui.tests.refactoring/resources/ExtractMethodWorkSpace/ExtractMethodTests/BBB.java
new file mode 100644
index 000000000..60e421a12
--- /dev/null
+++ b/testplugins/org.eclipse.jdt.ui.tests.refactoring/resources/ExtractMethodWorkSpace/ExtractMethodTests/BBB.java
@@ -0,0 +1,46 @@
+public class BBB {
+ public void foo() {
+ int i= 0;
+ BBB b= new BBB();
+ BBB[] bb= new BBB[10];
+ if (i == 0 && i == 10 && b instanceof BBB)
+ foo();
+ while(i++ == 10) {
+ foo();
+ }
+ i--;
+
+ while(i++ == 10)
+ foo();
+ i--;
+
+ do {
+ } while (i < 10);
+
+ for (int x= 0, o= 0; x < 10; x++, o++);
+ {
+ foo();
+ int z;//= x;
+ }
+
+ try {
+ foo();
+ } catch (Exception e) {
+ } finally {
+ }
+
+ switch (i) {
+ case 10:
+ foo();
+ case 20:
+ foo();
+ default:
+ foo();
+ }
+ }
+ public int g() {
+ g();
+ return 1;
+ }
+}
+

Back to the top