diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-07-21 10:19:13 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-07-21 10:19:13 +0200 |
commit | c06660bd186c7ae8215a822c4eceab097407eeda (patch) | |
tree | dd5ac9e524d1e68660c60102582493c787842f64 /src/core/lombok/EqualsAndHashCode.java | |
parent | 33b3e798fd6fdd85c6aa09cf30e8b19acacb1543 (diff) | |
download | lombok-c06660bd186c7ae8215a822c4eceab097407eeda.tar.gz lombok-c06660bd186c7ae8215a822c4eceab097407eeda.tar.bz2 lombok-c06660bd186c7ae8215a822c4eceab097407eeda.zip |
Refactor: for using this.getX() instead of this.x in generated toString(), equals(), and hashCode() methods. Field accessors are now always generated by a utility method. The one thing that remains is adding a getter searcher to this utility method.
Diffstat (limited to 'src/core/lombok/EqualsAndHashCode.java')
-rw-r--r-- | src/core/lombok/EqualsAndHashCode.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/lombok/EqualsAndHashCode.java b/src/core/lombok/EqualsAndHashCode.java index 88d72051..92fa42b5 100644 --- a/src/core/lombok/EqualsAndHashCode.java +++ b/src/core/lombok/EqualsAndHashCode.java @@ -1,5 +1,5 @@ /* - * Copyright © 2009 Reinier Zwitserloot and Roel Spilker. + * Copyright © 2009-2010 Reinier Zwitserloot and Roel Spilker. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -77,4 +77,10 @@ public @interface EqualsAndHashCode { * <strong>default: false</strong> */ boolean callSuper() default false; + + /** + * Normally, if getters are available, those are called. To suppress this and let the generated code use the fields directly, set this to {@code true}. + * <strong>default: false</strong> + */ + boolean doNotUseGetters() default false; } |