summaryrefslogtreecommitdiff
path: root/java/typeMigration/testData/refactoring/typeMigrationByAtomic/reverseIntArray/after/Test.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/typeMigration/testData/refactoring/typeMigrationByAtomic/reverseIntArray/after/Test.java')
-rw-r--r--java/typeMigration/testData/refactoring/typeMigrationByAtomic/reverseIntArray/after/Test.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/java/typeMigration/testData/refactoring/typeMigrationByAtomic/reverseIntArray/after/Test.java b/java/typeMigration/testData/refactoring/typeMigrationByAtomic/reverseIntArray/after/Test.java
new file mode 100644
index 000000000000..401714230d3c
--- /dev/null
+++ b/java/typeMigration/testData/refactoring/typeMigrationByAtomic/reverseIntArray/after/Test.java
@@ -0,0 +1,19 @@
+import java.util.concurrent.atomic.AtomicIntegerArray;
+
+class Test {
+ int[] a = new int[1];
+
+
+ void foo() {
+ a[0]++;
+ System.out.println(++a[0]);
+ a[0]--;
+ if (--a[0] == 0) {
+ a[0] += ((2));
+ a[0] = a[0] * 2;
+ if (a[0] == 0) {
+ System.out.println(a[0] + 7);
+ }
+ }
+ }
+} \ No newline at end of file