aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/ValDelegateMethodReference.java
diff options
context:
space:
mode:
authorBulgakov Alexander <buls@yandex.ru>2019-05-04 23:41:14 +0300
committerBulgakov Alexander <buls@yandex.ru>2019-05-04 23:41:14 +0300
commit8276dee2551d3f8d29f414a0a762565eec381258 (patch)
tree58e279150b6577b26e3a7a9c24aed4e1b347fda1 /test/transform/resource/after-ecj/ValDelegateMethodReference.java
parentafe9e374975c85a87fdf6c0d45171ac44f616a37 (diff)
parent2611e6bf9830e4971dcae3abedfede59f3cc86a5 (diff)
downloadlombok-8276dee2551d3f8d29f414a0a762565eec381258.tar.gz
lombok-8276dee2551d3f8d29f414a0a762565eec381258.tar.bz2
lombok-8276dee2551d3f8d29f414a0a762565eec381258.zip
Merge branch 'feature/typeInferenceImprovements' of https://github.com/bulgakovalexander/lombok into feature/typeInferenceImprovements
Diffstat (limited to 'test/transform/resource/after-ecj/ValDelegateMethodReference.java')
-rw-r--r--test/transform/resource/after-ecj/ValDelegateMethodReference.java58
1 files changed, 58 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/ValDelegateMethodReference.java b/test/transform/resource/after-ecj/ValDelegateMethodReference.java
new file mode 100644
index 00000000..cfd0dab2
--- /dev/null
+++ b/test/transform/resource/after-ecj/ValDelegateMethodReference.java
@@ -0,0 +1,58 @@
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Delegate;
+import lombok.val;
+import java.util.function.Function;
+public class ValDelegateMethodReference {
+ public ValDelegateMethodReference() {
+ super();
+ }
+ public void config() {
+ final @val Column<Entity, java.lang.String> 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) {
+ super();
+ }
+}
+class Entity {
+ private @Delegate MyDelegate innerDelegate;
+ Entity() {
+ super();
+ }
+ public @java.lang.SuppressWarnings("all") java.lang.Boolean getABoolean() {
+ return this.innerDelegate.getABoolean();
+ }
+ public @java.lang.SuppressWarnings("all") java.lang.String getValue() {
+ return this.innerDelegate.getValue();
+ }
+ public @java.lang.SuppressWarnings("all") void setABoolean(final java.lang.Boolean aBoolean) {
+ this.innerDelegate.setABoolean(aBoolean);
+ }
+ public @java.lang.SuppressWarnings("all") void setValue(final java.lang.String value) {
+ this.innerDelegate.setValue(value);
+ }
+}
+@Getter @Setter class MyDelegate {
+ private String value;
+ private Boolean aBoolean;
+ MyDelegate() {
+ super();
+ }
+ public @java.lang.SuppressWarnings("all") String getValue() {
+ return this.value;
+ }
+ public @java.lang.SuppressWarnings("all") Boolean getABoolean() {
+ return this.aBoolean;
+ }
+ public @java.lang.SuppressWarnings("all") void setValue(final String value) {
+ this.value = value;
+ }
+ public @java.lang.SuppressWarnings("all") void setABoolean(final Boolean aBoolean) {
+ this.aBoolean = aBoolean;
+ }
+}