summaryrefslogtreecommitdiff
path: root/java/typeMigration/testData/refactoring/typeMigrationByAtomic/directForeach/after/Test.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/typeMigration/testData/refactoring/typeMigrationByAtomic/directForeach/after/Test.java')
-rw-r--r--java/typeMigration/testData/refactoring/typeMigrationByAtomic/directForeach/after/Test.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/java/typeMigration/testData/refactoring/typeMigrationByAtomic/directForeach/after/Test.java b/java/typeMigration/testData/refactoring/typeMigrationByAtomic/directForeach/after/Test.java
new file mode 100644
index 000000000000..4db9a5619849
--- /dev/null
+++ b/java/typeMigration/testData/refactoring/typeMigrationByAtomic/directForeach/after/Test.java
@@ -0,0 +1,12 @@
+import java.util.*;
+import java.util.concurrent.atomic.AtomicReference;
+
+class Test {
+ AtomicReference<List<String>> lst;
+
+ void foo() {
+ for (String s : lst.get()) {
+ System.out.println(s);
+ }
+ }
+} \ No newline at end of file