mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-11 03:13:38 +00:00
21 lines
552 B
Java
21 lines
552 B
Java
public class ValComplex {
|
|
private String field = "";
|
|
private static final int CONSTANT = 20;
|
|
public void testComplex() {
|
|
final char[] shouldBeCharArray = field.toCharArray();
|
|
final int shouldBeInt = CONSTANT;
|
|
final java.lang.Object lock = new Object();
|
|
synchronized (lock) {
|
|
final int field = 20; //Shadowing
|
|
final int inner = 10;
|
|
switch (field) {
|
|
case 5:
|
|
final char[] shouldBeCharArray2 = shouldBeCharArray;
|
|
final int innerInner = inner;
|
|
|
|
}
|
|
}
|
|
final java.lang.String shouldBeString = field; //Unshadowing
|
|
}
|
|
}
|