Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'testplugins/org.eclipse.jdt.ui.tests.refactoring/resources/InferTypeArguments/testCuAddGetIterator')
-rw-r--r--testplugins/org.eclipse.jdt.ui.tests.refactoring/resources/InferTypeArguments/testCuAddGetIterator/in/A.java17
-rw-r--r--testplugins/org.eclipse.jdt.ui.tests.refactoring/resources/InferTypeArguments/testCuAddGetIterator/out/A.java17
2 files changed, 34 insertions, 0 deletions
diff --git a/testplugins/org.eclipse.jdt.ui.tests.refactoring/resources/InferTypeArguments/testCuAddGetIterator/in/A.java b/testplugins/org.eclipse.jdt.ui.tests.refactoring/resources/InferTypeArguments/testCuAddGetIterator/in/A.java
new file mode 100644
index 000000000..6e9524a0d
--- /dev/null
+++ b/testplugins/org.eclipse.jdt.ui.tests.refactoring/resources/InferTypeArguments/testCuAddGetIterator/in/A.java
@@ -0,0 +1,17 @@
+package p;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+class A {
+ void foo() {
+ List l= new ArrayList();
+ l.add("Eclipse"); l.add("is"); l.add(new String("cool"));
+ for (Iterator iter= l.iterator(); iter.hasNext();) {
+ String word= (String) iter.next();
+ System.out.print(word);
+ System.out.print(" ");
+ }
+ }
+} \ No newline at end of file
diff --git a/testplugins/org.eclipse.jdt.ui.tests.refactoring/resources/InferTypeArguments/testCuAddGetIterator/out/A.java b/testplugins/org.eclipse.jdt.ui.tests.refactoring/resources/InferTypeArguments/testCuAddGetIterator/out/A.java
new file mode 100644
index 000000000..af1f2ceac
--- /dev/null
+++ b/testplugins/org.eclipse.jdt.ui.tests.refactoring/resources/InferTypeArguments/testCuAddGetIterator/out/A.java
@@ -0,0 +1,17 @@
+package p;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+class A {
+ void foo() {
+ List<String> l= new ArrayList<String>();
+ l.add("Eclipse"); l.add("is"); l.add(new String("cool"));
+ for (Iterator<String> iter= l.iterator(); iter.hasNext();) {
+ String word= iter.next();
+ System.out.print(word);
+ System.out.print(" ");
+ }
+ }
+} \ No newline at end of file

Back to the top