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