aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/Data.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/lombok/Data.java')
-rw-r--r--src/lombok/Data.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lombok/Data.java b/src/lombok/Data.java
index 7d010e81..fa424c24 100644
--- a/src/lombok/Data.java
+++ b/src/lombok/Data.java
@@ -33,6 +33,10 @@ import java.lang.annotation.Target;
* 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.
* <p>
+ * The generated constructor will have 1 parameter for each final field. The generated toString will print all fields,
+ * while the generated hashCode and equals take into account all non-transient fields.<br>
+ * Static fields are skipped (no getter or setter, and they are not included in toString, equals, hashCode, or the constructor).
+ * <p>
* <code>toString</code>, <code>equals</code>, and <code>hashCode</code> use the deepX variants in the
* <code>java.util.Arrays</code> utility class. Therefore, if your class has arrays that contain themselves,
* these methods will just loop endlessly until the inevitable <code>StackOverflowError</code>. This behaviour