diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2012-08-10 18:06:13 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2012-08-10 18:06:13 +0200 |
commit | 1be7da76012b246af24d0515d192bca85d65c823 (patch) | |
tree | 21d9675c00d812c6bbbf76edb80d38b16777740d /src/core/lombok/experimental/Value.java | |
parent | 70317c73841d3e83b4b8008b68bea95753a5275f (diff) | |
download | lombok-1be7da76012b246af24d0515d192bca85d65c823.tar.gz lombok-1be7da76012b246af24d0515d192bca85d65c823.tar.bz2 lombok-1be7da76012b246af24d0515d192bca85d65c823.zip |
* Added priorities to handlers, along with implementation of the priority system for javac and ecj.
* @Value now makes the class itself final by default.
Diffstat (limited to 'src/core/lombok/experimental/Value.java')
-rw-r--r-- | src/core/lombok/experimental/Value.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/lombok/experimental/Value.java b/src/core/lombok/experimental/Value.java index f8bd06b2..b3ebc2d8 100644 --- a/src/core/lombok/experimental/Value.java +++ b/src/core/lombok/experimental/Value.java @@ -35,12 +35,14 @@ import java.lang.annotation.Target; * <li>Generates withers for all fields (except final fields that are initialized in the field declaration itself) * <li>Generates a constructor for each argument * <li>Adds {@code private} and {@code final} to each field. + * <li>Makes the class itself final. * </ul> * - * In other words, {@code @Value} is a shorthand for {@code @Getter @Wither @FieldDefaults(makeFinal=true,level=AccessLevel.PRIVATE) @EqualsAndHashCode @ToString @AllArgsConstructor}. + * In other words, {@code @Value} is a shorthand for:<br /> + * {@code final @Getter @Wither @FieldDefaults(makeFinal=true,level=AccessLevel.PRIVATE) @EqualsAndHashCode @ToString @AllArgsConstructor}. * <p> - * If any method to be generated already exists (in name - the return type or parameters are not relevant), then - * that method will not be generated by the Data annotation. + * If any method to be generated already exists (in name and parameter c ount - the return type or parameter types are not relevant), then + * that method will not be generated by the Value annotation. * <p> * The generated constructor will have 1 parameter for each field. The generated toString will print all fields, * while the generated hashCode and equals take into account all non-transient fields.<br> |