commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcucchi...@apache.org
Subject svn commit: r1188752 - /commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/IntHashMap.java
Date Tue, 25 Oct 2011 16:02:26 GMT
Author: mcucchiara
Date: Tue Oct 25 16:02:25 2011
New Revision: 1188752

URL: http://svn.apache.org/viewvc?rev=1188752&view=rev
Log:
removed redundant cast

Modified:
    commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/IntHashMap.java

Modified: commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/IntHashMap.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/IntHashMap.java?rev=1188752&r1=1188751&r2=1188752&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/IntHashMap.java (original)
+++ commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/IntHashMap.java Tue Oct
25 16:02:25 2011
@@ -373,7 +373,7 @@ public class IntHashMap<K extends Number
      */
     public V put( K key, V value )
     {
-        return put( ( (Number) key ).intValue(), value );
+        return put( key.intValue( ), value );
     }
 
     /**



Mime
View raw message