aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/ValDelegateMethodReference.java
diff options
context:
space:
mode:
authorBulgakov Alexander <mfourgeneralsherman@gmail.com>2019-05-03 21:50:15 +0300
committerBulgakov Alexander <mfourgeneralsherman@gmail.com>2019-05-03 21:50:15 +0300
commit715c731fc24bf2915d2eaefefd964615e62c12ed (patch)
treeabca888cf3284c6e4bb911a041e15c50d8ca92f9 /test/transform/resource/before/ValDelegateMethodReference.java
parentf0343886a331f3cb2175545a062f3736610f9179 (diff)
parent2335f251665d43b4c8cebe00b980f07ef33bdb17 (diff)
downloadlombok-715c731fc24bf2915d2eaefefd964615e62c12ed.tar.gz
lombok-715c731fc24bf2915d2eaefefd964615e62c12ed.tar.bz2
lombok-715c731fc24bf2915d2eaefefd964615e62c12ed.zip
Merge remote-tracking branch 'lombok/master' into feature/typeInferenceImprovements
Diffstat (limited to 'test/transform/resource/before/ValDelegateMethodReference.java')
-rw-r--r--test/transform/resource/before/ValDelegateMethodReference.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/transform/resource/before/ValDelegateMethodReference.java b/test/transform/resource/before/ValDelegateMethodReference.java
new file mode 100644
index 00000000..7adc402a
--- /dev/null
+++ b/test/transform/resource/before/ValDelegateMethodReference.java
@@ -0,0 +1,35 @@
+
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Delegate;
+import lombok.val;
+
+import java.util.function.Function;
+
+public class ValDelegateMethodReference {
+
+ public void config() {
+ val column = createColumn(Entity::getValue);
+ }
+
+ private <V> Column<Entity, V> createColumn(Function<Entity, V> func) {
+ return new Column<>(func);
+ }
+
+}
+
+class Column<T, V> {
+ public Column(Function<T, V> vp) {}
+}
+
+class Entity {
+ @Delegate
+ private MyDelegate innerDelegate;
+}
+
+@Getter
+@Setter
+class MyDelegate {
+ private String value;
+ private Boolean aBoolean;
+} \ No newline at end of file