aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/VarComplex.java
blob: b08ad115ced010151a24f62b200686782a79f867 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
public class VarComplex {
	private String field = "";
	private static final int CONSTANT = 20;
	public void testComplex() {
		char[] shouldBeCharArray = field.toCharArray();
		int shouldBeInt = CONSTANT;
		java.lang.Object lock = new Object();
		synchronized (lock) {
			int field = 20; //Shadowing
			int inner = 10;
			switch (field) {
			case 5: 
				char[] shouldBeCharArray2 = shouldBeCharArray;
				int innerInner = inner;
			
			}
		}
		java.lang.String shouldBeString = field; //Unshadowing
	}
}