Unnecessary casts

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@800111 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2009-08-02 17:23:05 +00:00
parent 57cbd07fd1
commit 30f5dcb3a9
1 changed files with 2 additions and 2 deletions

View File

@ -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();