commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r800111 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java
Date Sun, 02 Aug 2009 17:23:06 GMT
Author: sebb
Date: Sun Aug  2 17:23:05 2009
New Revision: 800111

URL: http://svn.apache.org/viewvc?rev=800111&view=rev
Log:
Unnecessary casts

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java?rev=800111&r1=800110&r2=800111&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java
Sun Aug  2 17:23:05 2009
@@ -238,7 +238,7 @@
      */
     public OpenMapRealVector add(OpenMapRealVector v) throws IllegalArgumentException{
         checkVectorDimensions(v.getDimension());
-        OpenMapRealVector res = (OpenMapRealVector)copy();
+        OpenMapRealVector res = copy();
         Iterator iter = v.getEntries().iterator();
         while (iter.hasNext()) {
             iter.advance();
@@ -1137,7 +1137,7 @@
      */
     public OpenMapRealVector subtract(OpenMapRealVector v) throws IllegalArgumentException{
         checkVectorDimensions(v.getDimension());
-        OpenMapRealVector res = (OpenMapRealVector)copy();
+        OpenMapRealVector res = copy();
         Iterator iter = v.getEntries().iterator();
         while (iter.hasNext()) {
             iter.advance();



Mime
View raw message