diff --git a/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java b/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java index 6d1579609..6bdc9e2a4 100644 --- a/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java +++ b/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java @@ -615,11 +615,16 @@ public class HashCodeBuilder implements Builder { * Append a hashCode for a boolean. *

*

- * This adds 1 when true, and 0 when false to the hashCode - * and not a 1231 or - * 1237 as done in java.lang.Boolean (see java.lang.Boolean javadoc). This is in - * accordance with the Effective Java - * design. + * This adds 1 when true, and 0 when false to the hashCode. + *

+ *

+ * This is in contrast to the standard java.lang.Boolean.hashCode handling, which computes + * a hashCode value of 1231 for java.lang.Boolean instances + * that represent true or 1237 for java.lang.Boolean instances + * that represent false. + *

+ *

+ * This is in accordance with the Effective Java design. *

* * @param value