diff options
Diffstat (limited to 'java/typeMigration/testData/refactoring/typeMigrationByAtomic/directString/after/Test.java')
-rw-r--r-- | java/typeMigration/testData/refactoring/typeMigrationByAtomic/directString/after/Test.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/java/typeMigration/testData/refactoring/typeMigrationByAtomic/directString/after/Test.java b/java/typeMigration/testData/refactoring/typeMigrationByAtomic/directString/after/Test.java new file mode 100644 index 000000000000..cb32e0ba130b --- /dev/null +++ b/java/typeMigration/testData/refactoring/typeMigrationByAtomic/directString/after/Test.java @@ -0,0 +1,11 @@ +import java.util.concurrent.atomic.AtomicReference; + +class Test { + AtomicReference<String> s = new AtomicReference<String>(""); + + void foo() { + if (s == null) { + System.out.println(s.get()); + } + } +}
\ No newline at end of file |