summaryrefslogtreecommitdiff
path: root/java/typeMigration/testData/refactoring/typeMigrationByThreadLocal/directString/after/Test.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/typeMigration/testData/refactoring/typeMigrationByThreadLocal/directString/after/Test.java')
-rw-r--r--java/typeMigration/testData/refactoring/typeMigrationByThreadLocal/directString/after/Test.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/java/typeMigration/testData/refactoring/typeMigrationByThreadLocal/directString/after/Test.java b/java/typeMigration/testData/refactoring/typeMigrationByThreadLocal/directString/after/Test.java
new file mode 100644
index 000000000000..949869096327
--- /dev/null
+++ b/java/typeMigration/testData/refactoring/typeMigrationByThreadLocal/directString/after/Test.java
@@ -0,0 +1,9 @@
+class Test {
+ ThreadLocal<String> myS = "";
+
+ void foo() {
+ if (myS == null) {
+ System.out.println(myS.get());
+ }
+ }
+} \ No newline at end of file