From 8c2ea4fbc64e8b7b4e553a6f8b9363eb0b70d76a Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Mon, 21 Nov 2016 22:54:29 +0100 Subject: Finish documentation on `var` --- doc/changelog.markdown | 1 + usage_examples/experimental/varExample_post.jpage | 4 ++-- website/features/experimental/Accessors.html | 2 +- website/features/experimental/var.html | 8 ++++---- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/doc/changelog.markdown b/doc/changelog.markdown index 474ca2f5..af6afad4 100644 --- a/doc/changelog.markdown +++ b/doc/changelog.markdown @@ -3,6 +3,7 @@ Lombok Changelog ### v1.16.11 "Edgy Guinea Pig" * v1.16.10 is the latest release +* FEATURE: `var` is the mutable sister of `val`. For now experimental, and opt-in using `ALLOW` in the flagUsage configuration key. Thanks for the contribution, Bulgakov Alexander. * BUGFIX: Annotation Processors that use ecj internally (dagger) no longer give linkage errors [Issue #1218](https://github.com/rzwitserloot/lombok/issues/1218) * BUGFIX: `val` in lambda expressions now work as expected [Issue #911](https://github.com/rzwitserloot/lombok/issues/911) * PLATFORM: Red Hat JBoss Developer Studio is now correctly identified by the installer [Issue #1164](https://github.com/rzwitserloot/lombok/issues/1164) diff --git a/usage_examples/experimental/varExample_post.jpage b/usage_examples/experimental/varExample_post.jpage index 25623510..41c022d3 100644 --- a/usage_examples/experimental/varExample_post.jpage +++ b/usage_examples/experimental/varExample_post.jpage @@ -3,14 +3,14 @@ import lombok.var; public class ValExample { public String example() { - ArrayList example = new ArrayList(); + ArrayList example = new ArrayList(); example.add("Hello, World!"); final String foo = example.get(0); return foo.toLowerCase(); } public void example2() { - ArrayList list = new ArrayList(); + ArrayList list = new ArrayList(); list.add("zero"); list.add("one"); list.add("two"); diff --git a/website/features/experimental/Accessors.html b/website/features/experimental/Accessors.html index 434cbdbe..909c0873 100644 --- a/website/features/experimental/Accessors.html +++ b/website/features/experimental/Accessors.html @@ -97,7 +97,7 @@
diff --git a/website/features/experimental/var.html b/website/features/experimental/var.html index 7a045c00..dde9c35e 100644 --- a/website/features/experimental/var.html +++ b/website/features/experimental/var.html @@ -15,7 +15,7 @@

Since

- @var was introduced as experimental feature in lombok v1.16.11. + @var was introduced as experimental feature in lombok v1.16.12.

@@ -49,7 +49,7 @@

Supported configuration keys:

lombok.val.flagUsage = [allow] (default: not set)
-
Lombok will flag any usage of var as a error if not configured.
+
Lombok will flag any usage of var as an error if not configured.
@@ -59,12 +59,12 @@ is an expression with a compound type: The result is both AbstractCollection as well as Serializable. The type inferred will be AbstractCollection, as that is a class, whereas Serializable is an interface.

- In ambiguous cases, such as when the initializer expression is null, java.lang.Object is inferred. + In ambiguous cases, java.lang.Object is inferred.

-- cgit