diff options
author | Bulgakov Alexander <mfourgeneralsherman@gmail.com> | 2019-05-03 21:50:15 +0300 |
---|---|---|
committer | Bulgakov Alexander <mfourgeneralsherman@gmail.com> | 2019-05-03 21:50:15 +0300 |
commit | 715c731fc24bf2915d2eaefefd964615e62c12ed (patch) | |
tree | abca888cf3284c6e4bb911a041e15c50d8ca92f9 /test/transform/resource/after-delombok/ValDelegateMethodReference.java | |
parent | f0343886a331f3cb2175545a062f3736610f9179 (diff) | |
parent | 2335f251665d43b4c8cebe00b980f07ef33bdb17 (diff) | |
download | lombok-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/after-delombok/ValDelegateMethodReference.java')
-rw-r--r-- | test/transform/resource/after-delombok/ValDelegateMethodReference.java | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ValDelegateMethodReference.java b/test/transform/resource/after-delombok/ValDelegateMethodReference.java new file mode 100644 index 00000000..186e2aaa --- /dev/null +++ b/test/transform/resource/after-delombok/ValDelegateMethodReference.java @@ -0,0 +1,65 @@ +import java.util.function.Function; + +public class ValDelegateMethodReference { + public void config() { + final 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) { + } +} + +class Entity { + private MyDelegate innerDelegate; + + @java.lang.SuppressWarnings("all") + public java.lang.String getValue() { + return this.innerDelegate.getValue(); + } + + @java.lang.SuppressWarnings("all") + public java.lang.Boolean getABoolean() { + return this.innerDelegate.getABoolean(); + } + + @java.lang.SuppressWarnings("all") + public void setValue(final java.lang.String value) { + this.innerDelegate.setValue(value); + } + + @java.lang.SuppressWarnings("all") + public void setABoolean(final java.lang.Boolean aBoolean) { + this.innerDelegate.setABoolean(aBoolean); + } +} + +class MyDelegate { + private String value; + private Boolean aBoolean; + + @java.lang.SuppressWarnings("all") + public String getValue() { + return this.value; + } + + @java.lang.SuppressWarnings("all") + public Boolean getABoolean() { + return this.aBoolean; + } + + @java.lang.SuppressWarnings("all") + public void setValue(final String value) { + this.value = value; + } + + @java.lang.SuppressWarnings("all") + public void setABoolean(final Boolean aBoolean) { + this.aBoolean = aBoolean; + } +}
\ No newline at end of file |