summaryrefslogtreecommitdiff
path: root/plugins/typeMigration/testData/refactoring/typeMigrationByThreadLocal/languageLevel/after/Test.java
blob: 81e5fe05d6ddb112b5a5517fdb5e690dbbf551d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
class Test {
  ThreadLocal i;

  void foo() {
    i.set(new Integer(((Integer) i.get()).intValue() + 1));
    i.set(new Integer(((Integer) i.get()).intValue() + 1));
    i.set(new Integer(((Integer) i.get()).intValue() - 1));
    i.set(new Integer(((Integer) i.get()).intValue() - 1));
    if (((Integer) i.get()).intValue() == 0);
  }
}