summaryrefslogtreecommitdiff
path: root/java/typeMigration/testData/intentions/atomic/after7.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/typeMigration/testData/intentions/atomic/after7.java')
-rw-r--r--java/typeMigration/testData/intentions/atomic/after7.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/java/typeMigration/testData/intentions/atomic/after7.java b/java/typeMigration/testData/intentions/atomic/after7.java
new file mode 100644
index 000000000000..19336f0bc61b
--- /dev/null
+++ b/java/typeMigration/testData/intentions/atomic/after7.java
@@ -0,0 +1,11 @@
+import java.util.concurrent.atomic.AtomicInteger;
+
+// "Convert to atomic" "true"
+class Test {
+ final AtomicInteger o = new AtomicInteger(0);
+ int j = o.get();
+
+ void foo() {
+ while ((o = j) != 0) {}
+ }
+} \ No newline at end of file