Commit Graph

4 Commits

Author SHA1 Message Date
Reinier Zwitserloot 66469e04fe [var] various upgrades to var:
* var is promoted to the main package.
* It is no longer an opt-in thing.
* bug: var (unlike val) is allowed in old-style for loops, but if you multi-init: for (var i = 0, j="Foo";;), you now get an error that you can't do that.
* tests both for the multi-for situation and the new main package variant.
2018-02-07 00:01:22 +01:00
Bulgakov Alexander 62672c0385 Use of the 'var' feature is disabled by default.
Include lombok.var.flagUsage = ALLOW in lombok.config to enable var
2016-10-27 23:52:50 +03:00
Bulgakov Alexander 710a04607b The @var annotation has been moved to the experimental package.
Added a test of a @var variable with null initialization.
2016-10-26 23:18:47 +03:00
Bulgakov Alexander 55619e8030 added supporting of @var variables. The @var annotation has the same functionality as the @val except 'final' modifier. 2016-10-24 16:28:02 +03:00