Eliminate unchecked cast
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@983568 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4b4ceaca41
commit
2c0e67621a
|
@ -87,7 +87,6 @@ public class MutableObject<T> implements Mutable<T>, Serializable {
|
|||
* <code>true</code> if the objects have equivalent <code>value</code> fields;
|
||||
* <code>false</code> otherwise.
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (obj == null) {
|
||||
|
@ -97,7 +96,7 @@ public class MutableObject<T> implements Mutable<T>, Serializable {
|
|||
return true;
|
||||
}
|
||||
if (this.getClass() == obj.getClass()) {
|
||||
MutableObject<T> that = (MutableObject<T>) obj;
|
||||
MutableObject<?> that = (MutableObject<?>) obj;
|
||||
return this.value.equals(that.value);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue