mirror of
https://github.com/apache/commons-lang.git
synced 2025-03-01 05:29:11 +00:00
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 @@
|
||||
* <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…
x
Reference in New Issue
Block a user