aboutsummaryrefslogtreecommitdiff
path: root/website/templates
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2018-03-27 21:44:36 +0200
committerGitHub <noreply@github.com>2018-03-27 21:44:36 +0200
commite4a9bd288b184b1012dfe0daad3ebc57733d53ff (patch)
tree97de13055ab415c539f3327b8919a703e2e95e01 /website/templates
parent0ba1f8c62e699c0ce6d1b76afc9ea55322c73c3e (diff)
parent57b66fd5767354ec611a2e2d96d8cf3968513118 (diff)
downloadlombok-e4a9bd288b184b1012dfe0daad3ebc57733d53ff.tar.gz
lombok-e4a9bd288b184b1012dfe0daad3ebc57733d53ff.tar.bz2
lombok-e4a9bd288b184b1012dfe0daad3ebc57733d53ff.zip
Merge pull request #1622 from danieltaub96/master
fixed ExtensionMethod example to return T (generic type)
Diffstat (limited to 'website/templates')
-rw-r--r--website/templates/features/experimental/ExtensionMethod.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/website/templates/features/experimental/ExtensionMethod.html b/website/templates/features/experimental/ExtensionMethod.html
index ca63bb2e..f1d8b084 100644
--- a/website/templates/features/experimental/ExtensionMethod.html
+++ b/website/templates/features/experimental/ExtensionMethod.html
@@ -36,7 +36,7 @@
</p><p>
Lombok does not (currently) have any runtime dependencies which means lombok does not (currently) ship with any useful extension methods so you'll have to make your own. However, here's one that might spark your imagination: <br />
<pre>public class ObjectExtensions {
- public static &lt;T&gt; or(T object, T ifNull) {
+ public static &lt;T&gt; T or(T object, T ifNull) {
return object != null ? object : ifNull;
}
}</pre><br />