Applying the javadoc sample usage change from LANG-353 as reported by Christoph Kutzinski

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@588536 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2007-10-26 06:14:10 +00:00
parent c22d9d59e5
commit 9da40ba6b5
1 changed files with 3 additions and 4 deletions

View File

@ -46,12 +46,11 @@ import java.util.List;
* <p>Typical use for the code is as follows:</p>
* <pre>
* public boolean equals(Object obj) {
* if (obj instanceof MyClass == false) {
* if (obj == null) { return false; }
* if (obj == this) { return true; }
* if (obj.getClass() == getClass()) {
* return false;
* }
* if (this == obj) {
* return true;
* }
* MyClass rhs = (MyClass) obj;
* return new EqualsBuilder()
* .appendSuper(super.equals(obj))