aboutsummaryrefslogtreecommitdiff
path: root/website2/templates/features/val.html
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2017-01-06 01:21:28 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2017-05-29 21:01:53 +0200
commita24bf3194477a841c905827ef625e19b0fd53b2a (patch)
treee0cf9ef16bd9f8cac8b7953e193980beff9d733e /website2/templates/features/val.html
parentbb85d799b3ba549c8a29afab0b246cb13b10507a (diff)
downloadlombok-a24bf3194477a841c905827ef625e19b0fd53b2a.tar.gz
lombok-a24bf3194477a841c905827ef625e19b0fd53b2a.tar.bz2
lombok-a24bf3194477a841c905827ef625e19b0fd53b2a.zip
feature pages updated and made more consistent.
Diffstat (limited to 'website2/templates/features/val.html')
-rw-r--r--website2/templates/features/val.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/website2/templates/features/val.html b/website2/templates/features/val.html
index 34a3f187..32a8ffdf 100644
--- a/website2/templates/features/val.html
+++ b/website2/templates/features/val.html
@@ -1,9 +1,14 @@
<#import "_features.html" as f>
<@f.scaffold title="val" logline="Finally! Hassle-free final local variables.">
+ <@f.history>
+ <p>
+ <code>val</code> was introduced in lombok 0.10.
+ </p>
+ </@f.history>
<@f.overview>
<p>
- <em>NEW in Lombok 0.10: </em>You can use <code>val</code> as the type of a local variable declaration instead of actually writing the type. When you do this, the type will be inferred from the initializer expression. The local variable will also be made final. This feature works on local variables and on foreach loops only, not on fields. The initializer expression is required.
+ You can use <code>val</code> as the type of a local variable declaration instead of actually writing the type. When you do this, the type will be inferred from the initializer expression. The local variable will also be made final. This feature works on local variables and on foreach loops only, not on fields. The initializer expression is required.
</p><p>
<code>val</code> is actually a 'type' of sorts, and exists as a real class in the <code>lombok</code> package. You must import it for val to work (or use <code>lombok.val</code> as the type). The existence of this type on a local variable declaration triggers both the adding of the <code>final</code> keyword as well as copying the type of the initializing expression which overwrites the 'fake' <code>val</code> type.
</p><p>