aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/DelegateOnGetter.java
blob: ad9d1cfb42ceeb33984f4b0f9c2c8e1586220b77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//platform !eclipse: Requires a 'full' eclipse with intialized workspace, and we don't (yet) have that set up properly in the test run.
import lombok.Delegate;
import lombok.Getter;

class DelegateOnGetter {

	@Delegate @Getter(lazy=true) private final Bar bar = new Bar() { 
		public void setList(java.util.ArrayList<String> list) {
		}
		public int getInt() {
			return 42;
		}
	};

	private interface Bar {
		void setList(java.util.ArrayList<java.lang.String> list);
		int getInt();
	}
}