aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/CleanupName.java
blob: 944a81e183ea51b5fc2f18932d5d76ce2be118b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
class CleanupName {
  CleanupName() {
    super();
  }
  void test() {
    @lombok.Cleanup("toString") Object o = "Hello World!";
    try 
      {
        System.out.println(o);
      }
    finally
      {
        o.toString();
      }
  }
  void test2() {
    @lombok.Cleanup(value = "toString") Object o = "Hello World too!";
    try 
      {
        System.out.println(o);
      }
    finally
      {
        o.toString();
      }
  }
}