You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2008/02/15 11:16:08 UTC
svn commit: r627994 - in
/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry:
NotARotationMatrixException.java Rotation.java
Author: luc
Date: Fri Feb 15 02:16:05 2008
New Revision: 627994
URL: http://svn.apache.org/viewvc?rev=627994&view=rev
Log:
fixed exception messages arguments types
Modified:
commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/NotARotationMatrixException.java
commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Rotation.java
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/NotARotationMatrixException.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/NotARotationMatrixException.java?rev=627994&r1=627993&r2=627994&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/NotARotationMatrixException.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/NotARotationMatrixException.java Fri Feb 15 02:16:05 2008
@@ -36,7 +36,7 @@
* @param specifier format specifier (to be translated)
* @param parts to insert in the format (no translation)
*/
- public NotARotationMatrixException(String specifier, String[] parts) {
+ public NotARotationMatrixException(String specifier, Object[] parts) {
super(specifier, parts);
}
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Rotation.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Rotation.java?rev=627994&r1=627993&r2=627994&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Rotation.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Rotation.java Fri Feb 15 02:16:05 2008
@@ -196,7 +196,7 @@
(m[1].length != 3) || (m[2].length != 3)) {
throw new NotARotationMatrixException("a {0}x{1} matrix" +
" cannot be a rotation matrix",
- new String[] {
+ new Object[] {
Integer.toString(m.length),
Integer.toString(m[0].length)
});
@@ -212,7 +212,7 @@
if (det < 0.0) {
throw new NotARotationMatrixException("the closest orthogonal matrix" +
" has a negative determinant {0}",
- new String[] {
+ new Object[] {
Double.toString(det)
});
}
@@ -1012,7 +1012,7 @@
// the algorithm did not converge after 10 iterations
throw new NotARotationMatrixException("unable to orthogonalize matrix" +
" in {0} iterations",
- new String[] {
+ new Object[] {
Integer.toString(i - 1)
});
}