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:
parent
c22d9d59e5
commit
9da40ba6b5
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue