aboutsummaryrefslogtreecommitdiff
path: root/website/templates/features/experimental
diff options
context:
space:
mode:
authorDaniel <danieltaub7@gmail.com>2018-03-21 21:54:07 +0200
committerDaniel <danieltaub7@gmail.com>2018-03-21 21:54:07 +0200
commit57b66fd5767354ec611a2e2d96d8cf3968513118 (patch)
tree02427b0725c45bda6e277c380860664b19f99d29 /website/templates/features/experimental
parent5a5d75a931e66b03212081e35bdfdc7b6be98783 (diff)
downloadlombok-57b66fd5767354ec611a2e2d96d8cf3968513118.tar.gz
lombok-57b66fd5767354ec611a2e2d96d8cf3968513118.tar.bz2
lombok-57b66fd5767354ec611a2e2d96d8cf3968513118.zip
fixed ExtensionMethod example to return T (generic type) , seem to remove or forgot for some reason...
Diffstat (limited to 'website/templates/features/experimental')
-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 />