From 1be7da76012b246af24d0515d192bca85d65c823 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Fri, 10 Aug 2012 18:06:13 +0200 Subject: * Added priorities to handlers, along with implementation of the priority system for javac and ecj. * @Value now makes the class itself final by default. --- src/core/lombok/experimental/Value.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/core/lombok/experimental/Value.java') 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; *
  • Generates withers for all fields (except final fields that are initialized in the field declaration itself) *
  • Generates a constructor for each argument *
  • Adds {@code private} and {@code final} to each field. + *
  • Makes the class itself final. * * - * 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:
    + * {@code final @Getter @Wither @FieldDefaults(makeFinal=true,level=AccessLevel.PRIVATE) @EqualsAndHashCode @ToString @AllArgsConstructor}. *

    - * 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. *

    * 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.
    -- cgit