aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/apache/commons/lang3/mutable/MutableObject.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main/java/org/apache/commons/lang3/mutable/MutableObject.java b/src/main/java/org/apache/commons/lang3/mutable/MutableObject.java
index 4f868277e..8c462b077 100644
--- a/src/main/java/org/apache/commons/lang3/mutable/MutableObject.java
+++ b/src/main/java/org/apache/commons/lang3/mutable/MutableObject.java
@@ -83,26 +83,26 @@ public class MutableObject<T> implements Mutable<T>, Serializable {
* </p>
*
* @param obj the object to compare with, <code>null</code> returns <code>false</code>
- * @return <code>true</code> if the objects are the same;
- * <code>true</code> if the objects have equivalent <code>value</code> fields;
+ * @return <code>true</code> if the objects are the same;
+ * <code>true</code> if the objects have equivalent <code>value</code> fields;
* <code>false</code> otherwise.
*/
@SuppressWarnings("unchecked")
@Override
- public boolean equals(Object obj) {
+ public boolean equals(Object obj) {
if (obj == null) {
- return false;
+ return false;
}
if (this == obj) {
- return true;
+ return true;
}
- if (this.getClass() == obj.getClass()) {
+ if (this.getClass() == obj.getClass()) {
MutableObject<T> that = (MutableObject<T>) obj;
return this.value.equals(that.value);
}
- else {
- return false;
- }
+ else {
+ return false;
+ }
}
/**