summaryrefslogtreecommitdiff
path: root/plugins/typeMigration/testData/refactoring/typeMigrationByThreadLocal/directByte/after/Test.java
blob: 61b88dbefceb39c811f99dcf88f5b685d5852b03 (plain)
1
2
3
4
5
6
7
8
9
10
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);
  }
}