aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/ValComplex.java
blob: 746e308821886f8daf7e18698d4ea9306c509258 (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
import lombok.val;
public class ValComplex {
  private String field = "";
  private static final int CONSTANT = 20;
  <clinit>() {
  }
  public ValComplex() {
    super();
  }
  public void testComplex() {
    final @val char[] shouldBeCharArray = field.toCharArray();
    final @val int shouldBeInt = CONSTANT;
    final @val java.lang.Object lock = new Object();
    synchronized (lock)
      {
        final @val int field = 20;
        final @val int inner = 10;
        switch (field) {
        case 5 :
            final @val char[] shouldBeCharArray2 = shouldBeCharArray;
            final @val int innerInner = inner;
        }
      }
    final @val java.lang.String shouldBeString = field;
  }
}