Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 91439 invoked from network); 9 Aug 2010 09:59:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Aug 2010 09:59:12 -0000 Received: (qmail 99613 invoked by uid 500); 9 Aug 2010 09:59:12 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 99256 invoked by uid 500); 9 Aug 2010 09:59:09 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 99249 invoked by uid 99); 9 Aug 2010 09:59:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Aug 2010 09:59:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Aug 2010 09:59:08 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 90FF823889E5; Mon, 9 Aug 2010 09:57:51 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@commons.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100809095751.90FF823889E5@eris.apache.org> 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 implements * true if the objects have equivalent value fields; * false otherwise. */ - @SuppressWarnings("unchecked") @Override public boolean equals(Object obj) { if (obj == null) { @@ -97,7 +96,7 @@ public class MutableObject implements return true; } if (this.getClass() == obj.getClass()) { - MutableObject that = (MutableObject) obj; + MutableObject that = (MutableObject) obj; return this.value.equals(that.value); } else {