diff options
author | Bulgakov Alexander <abulgakov@at-consulting.ru> | 2016-10-26 23:18:47 +0300 |
---|---|---|
committer | Bulgakov Alexander <abulgakov@at-consulting.ru> | 2016-10-26 23:18:47 +0300 |
commit | 710a04607b2c8c875d1971dd517f9eace10a14b4 (patch) | |
tree | 76dcf247f8724b3b47ee177afbce81dc97fa8b3d /src/core/lombok/experimental/var.java | |
parent | 55619e8030768fb42f8a9b4207bb330806eaceef (diff) | |
download | lombok-710a04607b2c8c875d1971dd517f9eace10a14b4.tar.gz lombok-710a04607b2c8c875d1971dd517f9eace10a14b4.tar.bz2 lombok-710a04607b2c8c875d1971dd517f9eace10a14b4.zip |
The @var annotation has been moved to the experimental package.
Added a test of a @var variable with null initialization.
Diffstat (limited to 'src/core/lombok/experimental/var.java')
-rw-r--r-- | src/core/lombok/experimental/var.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/core/lombok/experimental/var.java b/src/core/lombok/experimental/var.java new file mode 100644 index 00000000..d8de8b19 --- /dev/null +++ b/src/core/lombok/experimental/var.java @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2010-2013 The Project Lombok Authors. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +package lombok.experimental; + +/** + * like val but not final + */ +public @interface var { +} |