mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-06 16:16:53 +00:00
added supporting of @var variables. The @var annotation has the same functionality as the @val except 'final' modifier.
This commit is contained in:
1 parent
4d9da60f4f
commit
55619e8030
18 files changed
+321
-106
No files matched your search
@@ -0,0 +1,10 @@
|
||||
import lombok.var;
|
||||
|
||||
public class VarModifier {
|
||||
private String field = "";
|
||||
|
||||
public void testComplex() {
|
||||
final var shouldBeFinalCharArray = field.toCharArray();
|
||||
var shouldBeCharArray = field.toCharArray();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user