diff --git a/src/main/java/org/apache/commons/math/linear/ArrayRealVector.java b/src/main/java/org/apache/commons/math/linear/ArrayRealVector.java index 165f5b75c..a3808cc8d 100644 --- a/src/main/java/org/apache/commons/math/linear/ArrayRealVector.java +++ b/src/main/java/org/apache/commons/math/linear/ArrayRealVector.java @@ -312,7 +312,7 @@ public class ArrayRealVector extends RealVector implements Serializable { /** {@inheritDoc} */ @Override public ArrayRealVector subtract(RealVector v) { - if (v instanceof ArrayRealVector) { + if (v instanceof ArrayRealVector) { final double[] vData = ((ArrayRealVector) v).data; final int dim = vData.length; checkVectorDimensions(dim);