commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r983568 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/mutable/MutableObject.java
Date Mon, 09 Aug 2010 09:57:51 GMT
Author: sebb
Date: Mon Aug  9 09:57:51 2010
New Revision: 983568

URL: http://svn.apache.org/viewvc?rev=983568&view=rev
Log:
Eliminate unchecked cast

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/mutable/MutableObject.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/mutable/MutableObject.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/mutable/MutableObject.java?rev=983568&r1=983567&r2=983568&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/mutable/MutableObject.java
(original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/mutable/MutableObject.java
Mon Aug  9 09:57:51 2010
@@ -87,7 +87,6 @@ public class MutableObject<T> implements
      *          <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
             return true;
         }
         if (this.getClass() == obj.getClass()) {
-            MutableObject<T> that = (MutableObject<T>) obj;
+            MutableObject<?> that = (MutableObject<?>) obj;
             return this.value.equals(that.value);
         }
         else {



Mime
View raw message