diff options
Diffstat (limited to 'plugins/typeMigration/testData/refactoring/typeMigrationByThreadLocal/directByte/after/Test.java')
-rw-r--r-- | plugins/typeMigration/testData/refactoring/typeMigrationByThreadLocal/directByte/after/Test.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/typeMigration/testData/refactoring/typeMigrationByThreadLocal/directByte/after/Test.java b/plugins/typeMigration/testData/refactoring/typeMigrationByThreadLocal/directByte/after/Test.java new file mode 100644 index 000000000000..61b88dbefceb --- /dev/null +++ b/plugins/typeMigration/testData/refactoring/typeMigrationByThreadLocal/directByte/after/Test.java @@ -0,0 +1,11 @@ +class Test { + ThreadLocal<Byte> i; + + void foo() { + i.set(new Byte((byte) (i.get() + 1))); + i.set(new Byte((byte) (i.get() + 1))); + i.set(new Byte((byte) (i.get() - 1))); + i.set(new Byte((byte) (i.get() - 1))); + if (i.get() == 0); + } +}
\ No newline at end of file |