mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-03 09:13:36 +00:00
20 lines
551 B
Java
20 lines
551 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
|
|
}
|
|
} |