diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-12-21 21:56:08 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-12-22 09:28:28 +0100 |
commit | 161bcbaf8876e41e9ec6a6478d4444e144df5a92 (patch) | |
tree | 9d84171db7ac13fe1c08ecd08999cbeea3aa2725 /src/core/lombok/val.java | |
parent | e15de71fd410351cd6323a469b30300ccf4bba55 (diff) | |
download | lombok-161bcbaf8876e41e9ec6a6478d4444e144df5a92.tar.gz lombok-161bcbaf8876e41e9ec6a6478d4444e144df5a92.tar.bz2 lombok-161bcbaf8876e41e9ec6a6478d4444e144df5a92.zip |
After 2 weeks of debugging, finally figured out val in eclipse using lombok.val without breaking 'fix imports'. Eesh. Using "lombok.val" only half-works; auto-complete on the variable doesn't work, but it compiles fine and no errors are reported.
Diffstat (limited to 'src/core/lombok/val.java')
-rw-r--r-- | src/core/lombok/val.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/lombok/val.java b/src/core/lombok/val.java index baab0f90..33afd3ba 100644 --- a/src/core/lombok/val.java +++ b/src/core/lombok/val.java @@ -25,5 +25,7 @@ package lombok; * Use {@code val} as the type of any local variable declaration (even in a for-each statement), and the type will be inferred from the initializing expression. * For example: {@code val x = 10.0;} will infer {@code double}, and {@code val y = new ArrayList<String>();} will infer {@code ArrayList<String>}. The local variable * will also be made final. + * + * Note that this is an interface because {@code val x = 10;} will be desugared to <code>@val int x = 10;</code> */ -public class val {} +public @interface val {} |