Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'testplugins/org.eclipse.jdt.ui.tests.refactoring/resources/ExtractMethodWorkSpace/ExtractMethodTests/invalidSelection/A_test140.java')
-rw-r--r--testplugins/org.eclipse.jdt.ui.tests.refactoring/resources/ExtractMethodWorkSpace/ExtractMethodTests/invalidSelection/A_test140.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/testplugins/org.eclipse.jdt.ui.tests.refactoring/resources/ExtractMethodWorkSpace/ExtractMethodTests/invalidSelection/A_test140.java b/testplugins/org.eclipse.jdt.ui.tests.refactoring/resources/ExtractMethodWorkSpace/ExtractMethodTests/invalidSelection/A_test140.java
new file mode 100644
index 000000000..19a5f90db
--- /dev/null
+++ b/testplugins/org.eclipse.jdt.ui.tests.refactoring/resources/ExtractMethodWorkSpace/ExtractMethodTests/invalidSelection/A_test140.java
@@ -0,0 +1,20 @@
+package invalidSelection;
+
+public class A_test140 {
+ public boolean flag;
+ public int foo() {
+ int i= 10;
+ /*]*/switch(i) {
+ case 1:
+ if (flag)
+ break;
+ foo();
+ case 2:
+ return 10;
+ default:
+ throw new NullPointerException();
+ }/*[*/
+
+ return 10;
+ }
+} \ No newline at end of file

Back to the top