From 30f5dcb3a98adaa6b79c193109b15c30a81ed489 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Sun, 2 Aug 2009 17:23:05 +0000 Subject: [PATCH] Unnecessary casts git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@800111 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/math/linear/OpenMapRealVector.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java b/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java index 882f572f1..d42ff2076 100644 --- a/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java +++ b/src/main/java/org/apache/commons/math/linear/OpenMapRealVector.java @@ -238,7 +238,7 @@ public class OpenMapRealVector implements SparseRealVector, Serializable { */ 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 class OpenMapRealVector implements SparseRealVector, Serializable { */ 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();