Updating javadoc per Sean Mickey's 2nd comment to LANG-628
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@960834 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2055022644
commit
26cc12705e
|
@ -615,11 +615,16 @@ public class HashCodeBuilder implements Builder<Integer> {
|
||||||
* Append a <code>hashCode</code> for a <code>boolean</code>.
|
* Append a <code>hashCode</code> for a <code>boolean</code>.
|
||||||
* </p>
|
* </p>
|
||||||
* <p>
|
* <p>
|
||||||
* This adds <code>1</code> when true, and <code>0</code> when false to the <code>hashCode</code>
|
* This adds <code>1</code> when true, and <code>0</code> when false to the <code>hashCode</code>.
|
||||||
* and not a <code>1231</code> or
|
* </p>
|
||||||
* <code>1237</code> as done in java.lang.Boolean (see java.lang.Boolean javadoc). This is in
|
* <p>
|
||||||
* accordance with the <quote>Effective Java</quote>
|
* This is in contrast to the standard <code>java.lang.Boolean.hashCode</code> handling, which computes
|
||||||
* design.
|
* a <code>hashCode</code> value of <code>1231</code> for <code>java.lang.Boolean</code> instances
|
||||||
|
* that represent <code>true</code> or <code>1237</code> for <code>java.lang.Boolean</code> instances
|
||||||
|
* that represent <code>false</code>.
|
||||||
|
* </p>
|
||||||
|
* <p>
|
||||||
|
* This is in accordance with the <quote>Effective Java</quote> design.
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @param value
|
* @param value
|
||||||
|
|
Loading…
Reference in New Issue