From 8b7a7cbc813653a3248d6cf3a7779e220957bc85 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 8 May 2017 21:28:02 +0200 Subject: The great rename: the old ‘website’ is now ‘website-old’, and ‘website2’ is now ‘website’. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/features/experimental/var.html | 83 ---------------------------------- 1 file changed, 83 deletions(-) delete mode 100644 website/features/experimental/var.html (limited to 'website/features/experimental/var.html') diff --git a/website/features/experimental/var.html b/website/features/experimental/var.html deleted file mode 100644 index dde9c35e..00000000 --- a/website/features/experimental/var.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - EXPERIMENTAL – @var -
-
-
- -

@var

- -
-

Since

-

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

-
-
-

Experimental

-

- Experimental because: -

    -
  • This feature is very controversial.
  • -
  • There is JEP 286 that should make the @var obsolete.
  • -
Current status: uncertain - Currently we feel this feature cannot move out of experimental status. -
-
-

Overview

-

- The @var has the same mission as the @val annotation but modifable. -

-
-
-
-

With Lombok

-
@HTML_PRE@
-
-
-
-

Vanilla Java

-
@HTML_POST@
-
-
-
-
-

Supported configuration keys:

-
-
lombok.val.flagUsage = [allow] (default: not set)
-
Lombok will flag any usage of var as an error if not configured.
-
-
-
-

Small print

-

- For compound types, the most common superclass is inferred, not any shared interfaces. For example, bool ? new HashSet() : new ArrayList() - 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, java.lang.Object is inferred. -

-
-
- -
-
-
- - - -- cgit