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>true</code> if the objects have equivalent <code>value</code> fields;
|
||||||
* <code>false</code> otherwise.
|
* <code>false</code> otherwise.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if (obj == null) {
|
if (obj == null) {
|
||||||
|
@ -97,7 +96,7 @@ public class MutableObject<T> implements Mutable<T>, Serializable {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (this.getClass() == obj.getClass()) {
|
if (this.getClass() == obj.getClass()) {
|
||||||
MutableObject<T> that = (MutableObject<T>) obj;
|
MutableObject<?> that = (MutableObject<?>) obj;
|
||||||
return this.value.equals(that.value);
|
return this.value.equals(that.value);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue