aboutsummaryrefslogtreecommitdiff
path: root/website/templates
diff options
context:
space:
mode:
Diffstat (limited to 'website/templates')
-rw-r--r--website/templates/features/index.html4
-rw-r--r--website/templates/features/var.html (renamed from website/templates/features/experimental/var.html)22
2 files changed, 10 insertions, 16 deletions
diff --git a/website/templates/features/index.html b/website/templates/features/index.html
index 73b5dce8..d077ab4d 100644
--- a/website/templates/features/index.html
+++ b/website/templates/features/index.html
@@ -12,6 +12,10 @@
Finally! Hassle-free final local variables.
</@main.feature>
+ <@main.feature title="var" href="var">
+ Mutably! Hassle-free local variables.
+ </@main.feature>
+
<@main.feature title="@NonNull" href="NonNull">
or: How I learned to stop worrying and love the NullPointerException.
</@main.feature>
diff --git a/website/templates/features/experimental/var.html b/website/templates/features/var.html
index fa35ac5e..60e24914 100644
--- a/website/templates/features/experimental/var.html
+++ b/website/templates/features/var.html
@@ -1,23 +1,13 @@
-<#import "../_features.html" as f>
+<#import "_features.html" as f>
-<@f.scaffold title="var" logline="Modifiable local variables with a type inferred by assigning value.">
+<@f.scaffold title="var" logline="Mutably! Hassle-free local variables.">
<@f.history>
- <p>
- <code>var</code> was introduced in lombok 1.16.12 as experimental feature.
- </p>
+ <p><ul>
+ <li><code>var</code> was promoted to the main package in lombok 2.0.0; given that <a href="http://openjdk.java.net/jeps/286">JEP 286</a> establishes expectations, and lombok's take on <code>var</code> follows these, we've decided to promote <code>var</code> eventhough the feature remains controversial.</li>
+ <li><code>var</code> was introduced in lombok 1.16.12 as experimental feature.</li>
+ </ul></p>
</@f.history>
- <@f.experimental>
- <ul>
- <li>
- This feature is very controversial.
- </li><li>
- There is <a href="http://openjdk.java.net/jeps/286">JEP 286</a> that should make <code>var</code> obsolete.
- </li>
- </ul>
- Current status: <em>uncertain</em> – Currently we feel this feature cannot move out of experimental status.
- </@f.experimental>
-
<@f.overview>
<p>
<code>var</code> works exactly like <a href="/features/val"><code>val</code></a>, except the local variable is <em>not</em> marked as <code>final</code>.