Author: erans
Date: Tue Dec 7 14:40:16 2010
New Revision: 1043066
URL: http://svn.apache.org/viewvc?rev=1043066&view=rev
Log:
MATH-425
Modified:
commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealVectorFormat.java
Modified:
commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealVectorFormat.java
URL:
http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealVectorFormat.java?rev=1043066&r1=1043065&r2=1043066&view=diff
==============================================================================
---
commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealVectorFormat.java
(original)
+++
commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealVectorFormat.java
Tue Dec 7 14:40:16 2010
@@ -26,6 +26,7 @@ import java.util.List;
import java.util.Locale;
import org.apache.commons.math.MathRuntimeException;
+import org.apache.commons.math.exception.MathIllegalArgumentException;
import org.apache.commons.math.exception.util.LocalizedFormats;
import org.apache.commons.math.util.CompositeFormat;
@@ -236,19 +237,18 @@ public class RealVectorFormat extends Co
* offsets of the alignment field
* @return the value passed in as toAppendTo.
* @see java.text.Format#format(java.lang.Object, java.lang.StringBuffer,
java.text.FieldPosition)
- * @throws IllegalArgumentException is <code>obj</code> is not a valid
type.
+ * @throws MathIllegalArgumentException is {...@code obj} is not a valid
type.
*/
@Override
public StringBuffer format(Object obj, StringBuffer toAppendTo,
FieldPosition pos) {
if (obj instanceof RealVector) {
- return format( (RealVector)obj, toAppendTo, pos);
+ return format((RealVector) obj, toAppendTo, pos);
}
- throw MathRuntimeException.createIllegalArgumentException(
- LocalizedFormats.CANNOT_FORMAT_INSTANCE_AS_REAL_VECTOR,
- obj.getClass().getName());
+ throw new
MathIllegalArgumentException(LocalizedFormats.CANNOT_FORMAT_INSTANCE_AS_REAL_VECTOR,
+ obj.getClass().getName());
}