diff --git a/src/main/java/org/apache/commons/math/ConvergenceException.java b/src/main/java/org/apache/commons/math/ConvergenceException.java
index 0c7f9255c..ed13ee51b 100644
--- a/src/main/java/org/apache/commons/math/ConvergenceException.java
+++ b/src/main/java/org/apache/commons/math/ConvergenceException.java
@@ -16,9 +16,9 @@
*/
package org.apache.commons.math;
-import org.apache.commons.math.util.DummyLocalizable;
-import org.apache.commons.math.util.Localizable;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.DummyLocalizable;
+import org.apache.commons.math.exception.Localizable;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Error thrown when a numerical computation can not be performed because the
diff --git a/src/main/java/org/apache/commons/math/DimensionMismatchException.java b/src/main/java/org/apache/commons/math/DimensionMismatchException.java
index c3db815c8..ae30bffa7 100644
--- a/src/main/java/org/apache/commons/math/DimensionMismatchException.java
+++ b/src/main/java/org/apache/commons/math/DimensionMismatchException.java
@@ -16,7 +16,7 @@
*/
package org.apache.commons.math;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Error thrown when two dimensions differ.
diff --git a/src/main/java/org/apache/commons/math/DuplicateSampleAbscissaException.java b/src/main/java/org/apache/commons/math/DuplicateSampleAbscissaException.java
index 3ce78a091..83e43b7c2 100644
--- a/src/main/java/org/apache/commons/math/DuplicateSampleAbscissaException.java
+++ b/src/main/java/org/apache/commons/math/DuplicateSampleAbscissaException.java
@@ -16,7 +16,7 @@
*/
package org.apache.commons.math;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Exception thrown when a sample contains several entries at the same abscissa.
diff --git a/src/main/java/org/apache/commons/math/FunctionEvaluationException.java b/src/main/java/org/apache/commons/math/FunctionEvaluationException.java
index 8352d6620..ec1de7c36 100644
--- a/src/main/java/org/apache/commons/math/FunctionEvaluationException.java
+++ b/src/main/java/org/apache/commons/math/FunctionEvaluationException.java
@@ -16,10 +16,10 @@
*/
package org.apache.commons.math;
+import org.apache.commons.math.exception.DummyLocalizable;
+import org.apache.commons.math.exception.Localizable;
+import org.apache.commons.math.exception.LocalizedFormats;
import org.apache.commons.math.linear.ArrayRealVector;
-import org.apache.commons.math.util.DummyLocalizable;
-import org.apache.commons.math.util.Localizable;
-import org.apache.commons.math.util.LocalizedFormats;
/**
* Exception thrown when an error occurs evaluating a function.
diff --git a/src/main/java/org/apache/commons/math/MathConfigurationException.java b/src/main/java/org/apache/commons/math/MathConfigurationException.java
index 42e8f4b6f..21ee6030e 100644
--- a/src/main/java/org/apache/commons/math/MathConfigurationException.java
+++ b/src/main/java/org/apache/commons/math/MathConfigurationException.java
@@ -18,8 +18,8 @@ package org.apache.commons.math;
import java.io.Serializable;
-import org.apache.commons.math.util.DummyLocalizable;
-import org.apache.commons.math.util.Localizable;
+import org.apache.commons.math.exception.DummyLocalizable;
+import org.apache.commons.math.exception.Localizable;
/**
* Signals a configuration problem with any of the factory methods.
diff --git a/src/main/java/org/apache/commons/math/MathException.java b/src/main/java/org/apache/commons/math/MathException.java
index 4facae0ea..28b6a04b8 100644
--- a/src/main/java/org/apache/commons/math/MathException.java
+++ b/src/main/java/org/apache/commons/math/MathException.java
@@ -21,9 +21,9 @@ import java.io.PrintWriter;
import java.text.MessageFormat;
import java.util.Locale;
-import org.apache.commons.math.util.DummyLocalizable;
-import org.apache.commons.math.util.Localizable;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.DummyLocalizable;
+import org.apache.commons.math.exception.Localizable;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
diff --git a/src/main/java/org/apache/commons/math/MathRuntimeException.java b/src/main/java/org/apache/commons/math/MathRuntimeException.java
index 581873086..b2135de56 100644
--- a/src/main/java/org/apache/commons/math/MathRuntimeException.java
+++ b/src/main/java/org/apache/commons/math/MathRuntimeException.java
@@ -26,9 +26,9 @@ import java.util.ConcurrentModificationException;
import java.util.Locale;
import java.util.NoSuchElementException;
-import org.apache.commons.math.util.DummyLocalizable;
-import org.apache.commons.math.util.Localizable;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.DummyLocalizable;
+import org.apache.commons.math.exception.Localizable;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Base class for commons-math unchecked exceptions.
diff --git a/src/main/java/org/apache/commons/math/MaxEvaluationsExceededException.java b/src/main/java/org/apache/commons/math/MaxEvaluationsExceededException.java
index d054cb174..02e601fec 100644
--- a/src/main/java/org/apache/commons/math/MaxEvaluationsExceededException.java
+++ b/src/main/java/org/apache/commons/math/MaxEvaluationsExceededException.java
@@ -18,9 +18,9 @@
package org.apache.commons.math;
import org.apache.commons.math.ConvergenceException;
-import org.apache.commons.math.util.DummyLocalizable;
-import org.apache.commons.math.util.Localizable;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.DummyLocalizable;
+import org.apache.commons.math.exception.Localizable;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Error thrown when a numerical computation exceeds its allowed
diff --git a/src/main/java/org/apache/commons/math/MaxIterationsExceededException.java b/src/main/java/org/apache/commons/math/MaxIterationsExceededException.java
index a3ade62d7..dbc809f50 100644
--- a/src/main/java/org/apache/commons/math/MaxIterationsExceededException.java
+++ b/src/main/java/org/apache/commons/math/MaxIterationsExceededException.java
@@ -18,9 +18,9 @@
package org.apache.commons.math;
import org.apache.commons.math.ConvergenceException;
-import org.apache.commons.math.util.DummyLocalizable;
-import org.apache.commons.math.util.Localizable;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.DummyLocalizable;
+import org.apache.commons.math.exception.Localizable;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Error thrown when a numerical computation exceeds its allowed
diff --git a/src/main/java/org/apache/commons/math/analysis/integration/LegendreGaussIntegrator.java b/src/main/java/org/apache/commons/math/analysis/integration/LegendreGaussIntegrator.java
index 894f0711f..352719478 100644
--- a/src/main/java/org/apache/commons/math/analysis/integration/LegendreGaussIntegrator.java
+++ b/src/main/java/org/apache/commons/math/analysis/integration/LegendreGaussIntegrator.java
@@ -21,7 +21,7 @@ import org.apache.commons.math.FunctionEvaluationException;
import org.apache.commons.math.MathRuntimeException;
import org.apache.commons.math.MaxIterationsExceededException;
import org.apache.commons.math.analysis.UnivariateRealFunction;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Implements the
diff --git a/src/main/java/org/apache/commons/math/analysis/integration/RombergIntegrator.java b/src/main/java/org/apache/commons/math/analysis/integration/RombergIntegrator.java
index 679517ff5..8d4adf090 100644
--- a/src/main/java/org/apache/commons/math/analysis/integration/RombergIntegrator.java
+++ b/src/main/java/org/apache/commons/math/analysis/integration/RombergIntegrator.java
@@ -20,7 +20,7 @@ import org.apache.commons.math.FunctionEvaluationException;
import org.apache.commons.math.MathRuntimeException;
import org.apache.commons.math.MaxIterationsExceededException;
import org.apache.commons.math.analysis.UnivariateRealFunction;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Implements the
diff --git a/src/main/java/org/apache/commons/math/analysis/integration/SimpsonIntegrator.java b/src/main/java/org/apache/commons/math/analysis/integration/SimpsonIntegrator.java
index 306299c06..6d888030c 100644
--- a/src/main/java/org/apache/commons/math/analysis/integration/SimpsonIntegrator.java
+++ b/src/main/java/org/apache/commons/math/analysis/integration/SimpsonIntegrator.java
@@ -20,7 +20,7 @@ import org.apache.commons.math.FunctionEvaluationException;
import org.apache.commons.math.MathRuntimeException;
import org.apache.commons.math.MaxIterationsExceededException;
import org.apache.commons.math.analysis.UnivariateRealFunction;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Implements the
diff --git a/src/main/java/org/apache/commons/math/analysis/integration/TrapezoidIntegrator.java b/src/main/java/org/apache/commons/math/analysis/integration/TrapezoidIntegrator.java
index 808143add..8842624e5 100644
--- a/src/main/java/org/apache/commons/math/analysis/integration/TrapezoidIntegrator.java
+++ b/src/main/java/org/apache/commons/math/analysis/integration/TrapezoidIntegrator.java
@@ -20,7 +20,7 @@ import org.apache.commons.math.FunctionEvaluationException;
import org.apache.commons.math.MathRuntimeException;
import org.apache.commons.math.MaxIterationsExceededException;
import org.apache.commons.math.analysis.UnivariateRealFunction;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Implements the
diff --git a/src/main/java/org/apache/commons/math/analysis/integration/UnivariateRealIntegratorImpl.java b/src/main/java/org/apache/commons/math/analysis/integration/UnivariateRealIntegratorImpl.java
index 0a43c06d6..f384da34e 100644
--- a/src/main/java/org/apache/commons/math/analysis/integration/UnivariateRealIntegratorImpl.java
+++ b/src/main/java/org/apache/commons/math/analysis/integration/UnivariateRealIntegratorImpl.java
@@ -19,7 +19,7 @@ package org.apache.commons.math.analysis.integration;
import org.apache.commons.math.ConvergingAlgorithmImpl;
import org.apache.commons.math.MathRuntimeException;
import org.apache.commons.math.analysis.UnivariateRealFunction;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Provide a default implementation for several generic functions.
diff --git a/src/main/java/org/apache/commons/math/analysis/interpolation/LinearInterpolator.java b/src/main/java/org/apache/commons/math/analysis/interpolation/LinearInterpolator.java
index 85e0cb39a..d3f0c12f6 100644
--- a/src/main/java/org/apache/commons/math/analysis/interpolation/LinearInterpolator.java
+++ b/src/main/java/org/apache/commons/math/analysis/interpolation/LinearInterpolator.java
@@ -17,11 +17,11 @@
package org.apache.commons.math.analysis.interpolation;
import org.apache.commons.math.exception.DimensionMismatchException;
+import org.apache.commons.math.exception.LocalizedFormats;
import org.apache.commons.math.exception.NumberIsTooSmallException;
import org.apache.commons.math.analysis.polynomials.PolynomialFunction;
import org.apache.commons.math.analysis.polynomials.PolynomialSplineFunction;
import org.apache.commons.math.util.MathUtils;
-import org.apache.commons.math.util.LocalizedFormats;
/**
* Implements a linear function for interpolation of real univariate functions.
diff --git a/src/main/java/org/apache/commons/math/analysis/interpolation/LoessInterpolator.java b/src/main/java/org/apache/commons/math/analysis/interpolation/LoessInterpolator.java
index 79c81a3a6..1e1a8cd75 100644
--- a/src/main/java/org/apache/commons/math/analysis/interpolation/LoessInterpolator.java
+++ b/src/main/java/org/apache/commons/math/analysis/interpolation/LoessInterpolator.java
@@ -21,8 +21,8 @@ import java.util.Arrays;
import org.apache.commons.math.MathException;
import org.apache.commons.math.analysis.polynomials.PolynomialSplineFunction;
-import org.apache.commons.math.util.Localizable;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.Localizable;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Implements the
diff --git a/src/main/java/org/apache/commons/math/analysis/interpolation/SmoothingBicubicSplineInterpolator.java b/src/main/java/org/apache/commons/math/analysis/interpolation/SmoothingBicubicSplineInterpolator.java
index f3918af9a..d07507c6b 100644
--- a/src/main/java/org/apache/commons/math/analysis/interpolation/SmoothingBicubicSplineInterpolator.java
+++ b/src/main/java/org/apache/commons/math/analysis/interpolation/SmoothingBicubicSplineInterpolator.java
@@ -19,11 +19,11 @@ package org.apache.commons.math.analysis.interpolation;
import org.apache.commons.math.DimensionMismatchException;
import org.apache.commons.math.MathRuntimeException;
import org.apache.commons.math.MathException;
-import org.apache.commons.math.util.LocalizedFormats;
import org.apache.commons.math.util.MathUtils;
import org.apache.commons.math.util.MathUtils.OrderDirection;
import org.apache.commons.math.analysis.UnivariateRealFunction;
import org.apache.commons.math.analysis.polynomials.PolynomialSplineFunction;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Generates a bicubic interpolation function.
diff --git a/src/main/java/org/apache/commons/math/analysis/interpolation/SplineInterpolator.java b/src/main/java/org/apache/commons/math/analysis/interpolation/SplineInterpolator.java
index 723d7285b..35bddff54 100644
--- a/src/main/java/org/apache/commons/math/analysis/interpolation/SplineInterpolator.java
+++ b/src/main/java/org/apache/commons/math/analysis/interpolation/SplineInterpolator.java
@@ -17,11 +17,11 @@
package org.apache.commons.math.analysis.interpolation;
import org.apache.commons.math.exception.DimensionMismatchException;
+import org.apache.commons.math.exception.LocalizedFormats;
import org.apache.commons.math.exception.NumberIsTooSmallException;
import org.apache.commons.math.analysis.polynomials.PolynomialFunction;
import org.apache.commons.math.analysis.polynomials.PolynomialSplineFunction;
import org.apache.commons.math.util.MathUtils;
-import org.apache.commons.math.util.LocalizedFormats;
/**
* Computes a natural (also known as "free", "unclamped") cubic spline interpolation for the data set.
diff --git a/src/main/java/org/apache/commons/math/analysis/polynomials/PolynomialFunction.java b/src/main/java/org/apache/commons/math/analysis/polynomials/PolynomialFunction.java
index e8bb08180..bd57a3b02 100644
--- a/src/main/java/org/apache/commons/math/analysis/polynomials/PolynomialFunction.java
+++ b/src/main/java/org/apache/commons/math/analysis/polynomials/PolynomialFunction.java
@@ -19,10 +19,10 @@ package org.apache.commons.math.analysis.polynomials;
import java.io.Serializable;
import java.util.Arrays;
+import org.apache.commons.math.exception.LocalizedFormats;
import org.apache.commons.math.exception.NoDataException;
import org.apache.commons.math.analysis.DifferentiableUnivariateRealFunction;
import org.apache.commons.math.analysis.UnivariateRealFunction;
-import org.apache.commons.math.util.LocalizedFormats;
/**
* Immutable representation of a real polynomial function with real coefficients.
diff --git a/src/main/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionLagrangeForm.java b/src/main/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionLagrangeForm.java
index 0976a9736..ce77ac164 100644
--- a/src/main/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionLagrangeForm.java
+++ b/src/main/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionLagrangeForm.java
@@ -20,7 +20,7 @@ import org.apache.commons.math.DuplicateSampleAbscissaException;
import org.apache.commons.math.FunctionEvaluationException;
import org.apache.commons.math.MathRuntimeException;
import org.apache.commons.math.analysis.UnivariateRealFunction;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Implements the representation of a real polynomial function in
diff --git a/src/main/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionNewtonForm.java b/src/main/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionNewtonForm.java
index b33cc6881..6573285d5 100644
--- a/src/main/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionNewtonForm.java
+++ b/src/main/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionNewtonForm.java
@@ -19,7 +19,7 @@ package org.apache.commons.math.analysis.polynomials;
import org.apache.commons.math.FunctionEvaluationException;
import org.apache.commons.math.MathRuntimeException;
import org.apache.commons.math.analysis.UnivariateRealFunction;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Implements the representation of a real polynomial function in
diff --git a/src/main/java/org/apache/commons/math/analysis/polynomials/PolynomialSplineFunction.java b/src/main/java/org/apache/commons/math/analysis/polynomials/PolynomialSplineFunction.java
index f03aec7c4..d32561bbe 100644
--- a/src/main/java/org/apache/commons/math/analysis/polynomials/PolynomialSplineFunction.java
+++ b/src/main/java/org/apache/commons/math/analysis/polynomials/PolynomialSplineFunction.java
@@ -22,7 +22,7 @@ import org.apache.commons.math.ArgumentOutsideDomainException;
import org.apache.commons.math.MathRuntimeException;
import org.apache.commons.math.analysis.DifferentiableUnivariateRealFunction;
import org.apache.commons.math.analysis.UnivariateRealFunction;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Represents a polynomial spline function.
diff --git a/src/main/java/org/apache/commons/math/analysis/solvers/BrentSolver.java b/src/main/java/org/apache/commons/math/analysis/solvers/BrentSolver.java
index 430b7747e..70f2b4184 100644
--- a/src/main/java/org/apache/commons/math/analysis/solvers/BrentSolver.java
+++ b/src/main/java/org/apache/commons/math/analysis/solvers/BrentSolver.java
@@ -21,7 +21,7 @@ import org.apache.commons.math.FunctionEvaluationException;
import org.apache.commons.math.MathRuntimeException;
import org.apache.commons.math.MaxIterationsExceededException;
import org.apache.commons.math.analysis.UnivariateRealFunction;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Implements the
diff --git a/src/main/java/org/apache/commons/math/analysis/solvers/LaguerreSolver.java b/src/main/java/org/apache/commons/math/analysis/solvers/LaguerreSolver.java
index 3d54ad63c..f5650ade5 100644
--- a/src/main/java/org/apache/commons/math/analysis/solvers/LaguerreSolver.java
+++ b/src/main/java/org/apache/commons/math/analysis/solvers/LaguerreSolver.java
@@ -23,7 +23,7 @@ import org.apache.commons.math.MaxIterationsExceededException;
import org.apache.commons.math.analysis.UnivariateRealFunction;
import org.apache.commons.math.analysis.polynomials.PolynomialFunction;
import org.apache.commons.math.complex.Complex;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Implements the
diff --git a/src/main/java/org/apache/commons/math/analysis/solvers/NewtonSolver.java b/src/main/java/org/apache/commons/math/analysis/solvers/NewtonSolver.java
index d9a64c589..5b81d1035 100644
--- a/src/main/java/org/apache/commons/math/analysis/solvers/NewtonSolver.java
+++ b/src/main/java/org/apache/commons/math/analysis/solvers/NewtonSolver.java
@@ -22,7 +22,7 @@ import org.apache.commons.math.MathRuntimeException;
import org.apache.commons.math.MaxIterationsExceededException;
import org.apache.commons.math.analysis.DifferentiableUnivariateRealFunction;
import org.apache.commons.math.analysis.UnivariateRealFunction;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Implements
diff --git a/src/main/java/org/apache/commons/math/analysis/solvers/SecantSolver.java b/src/main/java/org/apache/commons/math/analysis/solvers/SecantSolver.java
index dd58b1b8f..8bb7724ef 100644
--- a/src/main/java/org/apache/commons/math/analysis/solvers/SecantSolver.java
+++ b/src/main/java/org/apache/commons/math/analysis/solvers/SecantSolver.java
@@ -21,7 +21,7 @@ import org.apache.commons.math.FunctionEvaluationException;
import org.apache.commons.math.MathRuntimeException;
import org.apache.commons.math.MaxIterationsExceededException;
import org.apache.commons.math.analysis.UnivariateRealFunction;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
diff --git a/src/main/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverImpl.java b/src/main/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverImpl.java
index 83c1fdc7c..5f12cb6ab 100644
--- a/src/main/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverImpl.java
+++ b/src/main/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverImpl.java
@@ -21,7 +21,7 @@ import org.apache.commons.math.ConvergingAlgorithmImpl;
import org.apache.commons.math.FunctionEvaluationException;
import org.apache.commons.math.MathRuntimeException;
import org.apache.commons.math.analysis.UnivariateRealFunction;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Provide a default implementation for several functions useful to generic
diff --git a/src/main/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverUtils.java b/src/main/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverUtils.java
index 576996648..b66a40b92 100644
--- a/src/main/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverUtils.java
+++ b/src/main/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverUtils.java
@@ -20,7 +20,7 @@ import org.apache.commons.math.FunctionEvaluationException;
import org.apache.commons.math.ConvergenceException;
import org.apache.commons.math.MathRuntimeException;
import org.apache.commons.math.analysis.UnivariateRealFunction;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Utility routines for {@link UnivariateRealSolver} objects.
diff --git a/src/main/java/org/apache/commons/math/complex/Complex.java b/src/main/java/org/apache/commons/math/complex/Complex.java
index c1c61de90..f2c6a2f6d 100644
--- a/src/main/java/org/apache/commons/math/complex/Complex.java
+++ b/src/main/java/org/apache/commons/math/complex/Complex.java
@@ -23,7 +23,7 @@ import java.util.List;
import org.apache.commons.math.FieldElement;
import org.apache.commons.math.MathRuntimeException;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
import org.apache.commons.math.util.MathUtils;
/**
diff --git a/src/main/java/org/apache/commons/math/complex/ComplexFormat.java b/src/main/java/org/apache/commons/math/complex/ComplexFormat.java
index 514e974ed..b57062503 100644
--- a/src/main/java/org/apache/commons/math/complex/ComplexFormat.java
+++ b/src/main/java/org/apache/commons/math/complex/ComplexFormat.java
@@ -24,8 +24,8 @@ import java.text.ParsePosition;
import java.util.Locale;
import org.apache.commons.math.MathRuntimeException;
+import org.apache.commons.math.exception.LocalizedFormats;
import org.apache.commons.math.util.CompositeFormat;
-import org.apache.commons.math.util.LocalizedFormats;
/**
* Formats a Complex number in cartesian format "Re(c) + Im(c)i". 'i' can
diff --git a/src/main/java/org/apache/commons/math/complex/ComplexUtils.java b/src/main/java/org/apache/commons/math/complex/ComplexUtils.java
index 160b425f8..346575216 100644
--- a/src/main/java/org/apache/commons/math/complex/ComplexUtils.java
+++ b/src/main/java/org/apache/commons/math/complex/ComplexUtils.java
@@ -18,7 +18,7 @@
package org.apache.commons.math.complex;
import org.apache.commons.math.MathRuntimeException;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Static implementations of common
diff --git a/src/main/java/org/apache/commons/math/distribution/AbstractContinuousDistribution.java b/src/main/java/org/apache/commons/math/distribution/AbstractContinuousDistribution.java
index bffff6cec..944997fc8 100644
--- a/src/main/java/org/apache/commons/math/distribution/AbstractContinuousDistribution.java
+++ b/src/main/java/org/apache/commons/math/distribution/AbstractContinuousDistribution.java
@@ -25,8 +25,8 @@ import org.apache.commons.math.MathRuntimeException;
import org.apache.commons.math.analysis.UnivariateRealFunction;
import org.apache.commons.math.analysis.solvers.BrentSolver;
import org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils;
+import org.apache.commons.math.exception.LocalizedFormats;
import org.apache.commons.math.random.RandomDataImpl;
-import org.apache.commons.math.util.LocalizedFormats;
/**
* Base class for continuous distributions. Default implementations are
diff --git a/src/main/java/org/apache/commons/math/distribution/AbstractDistribution.java b/src/main/java/org/apache/commons/math/distribution/AbstractDistribution.java
index 696351c87..de7fe4844 100644
--- a/src/main/java/org/apache/commons/math/distribution/AbstractDistribution.java
+++ b/src/main/java/org/apache/commons/math/distribution/AbstractDistribution.java
@@ -20,7 +20,7 @@ import java.io.Serializable;
import org.apache.commons.math.MathException;
import org.apache.commons.math.MathRuntimeException;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Base class for probability distributions.
diff --git a/src/main/java/org/apache/commons/math/distribution/AbstractIntegerDistribution.java b/src/main/java/org/apache/commons/math/distribution/AbstractIntegerDistribution.java
index fdd52e2a9..230a121fb 100644
--- a/src/main/java/org/apache/commons/math/distribution/AbstractIntegerDistribution.java
+++ b/src/main/java/org/apache/commons/math/distribution/AbstractIntegerDistribution.java
@@ -21,8 +21,8 @@ import java.io.Serializable;
import org.apache.commons.math.FunctionEvaluationException;
import org.apache.commons.math.MathException;
import org.apache.commons.math.MathRuntimeException;
+import org.apache.commons.math.exception.LocalizedFormats;
import org.apache.commons.math.random.RandomDataImpl;
-import org.apache.commons.math.util.LocalizedFormats;
/**
diff --git a/src/main/java/org/apache/commons/math/distribution/BetaDistributionImpl.java b/src/main/java/org/apache/commons/math/distribution/BetaDistributionImpl.java
index 0d224412b..1d1373dcc 100644
--- a/src/main/java/org/apache/commons/math/distribution/BetaDistributionImpl.java
+++ b/src/main/java/org/apache/commons/math/distribution/BetaDistributionImpl.java
@@ -18,9 +18,9 @@ package org.apache.commons.math.distribution;
import org.apache.commons.math.MathException;
import org.apache.commons.math.MathRuntimeException;
+import org.apache.commons.math.exception.LocalizedFormats;
import org.apache.commons.math.special.Gamma;
import org.apache.commons.math.special.Beta;
-import org.apache.commons.math.util.LocalizedFormats;
/**
* Implements the Beta distribution.
diff --git a/src/main/java/org/apache/commons/math/distribution/BinomialDistributionImpl.java b/src/main/java/org/apache/commons/math/distribution/BinomialDistributionImpl.java
index 564b4c01d..700c6feb8 100644
--- a/src/main/java/org/apache/commons/math/distribution/BinomialDistributionImpl.java
+++ b/src/main/java/org/apache/commons/math/distribution/BinomialDistributionImpl.java
@@ -20,8 +20,8 @@ import java.io.Serializable;
import org.apache.commons.math.MathException;
import org.apache.commons.math.MathRuntimeException;
+import org.apache.commons.math.exception.LocalizedFormats;
import org.apache.commons.math.special.Beta;
-import org.apache.commons.math.util.LocalizedFormats;
/**
* The default implementation of {@link BinomialDistribution}.
diff --git a/src/main/java/org/apache/commons/math/distribution/CauchyDistributionImpl.java b/src/main/java/org/apache/commons/math/distribution/CauchyDistributionImpl.java
index 129176412..342b3af5d 100644
--- a/src/main/java/org/apache/commons/math/distribution/CauchyDistributionImpl.java
+++ b/src/main/java/org/apache/commons/math/distribution/CauchyDistributionImpl.java
@@ -20,7 +20,7 @@ package org.apache.commons.math.distribution;
import java.io.Serializable;
import org.apache.commons.math.MathRuntimeException;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Default implementation of
diff --git a/src/main/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java b/src/main/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java
index 80a4f7fed..ff1882d0c 100644
--- a/src/main/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java
+++ b/src/main/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java
@@ -20,7 +20,7 @@ import java.io.Serializable;
import org.apache.commons.math.MathException;
import org.apache.commons.math.MathRuntimeException;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* The default implementation of {@link ExponentialDistribution}.
diff --git a/src/main/java/org/apache/commons/math/distribution/FDistributionImpl.java b/src/main/java/org/apache/commons/math/distribution/FDistributionImpl.java
index 5e88cb853..0b87d110e 100644
--- a/src/main/java/org/apache/commons/math/distribution/FDistributionImpl.java
+++ b/src/main/java/org/apache/commons/math/distribution/FDistributionImpl.java
@@ -20,8 +20,8 @@ import java.io.Serializable;
import org.apache.commons.math.MathException;
import org.apache.commons.math.MathRuntimeException;
+import org.apache.commons.math.exception.LocalizedFormats;
import org.apache.commons.math.special.Beta;
-import org.apache.commons.math.util.LocalizedFormats;
/**
* Default implementation of
diff --git a/src/main/java/org/apache/commons/math/distribution/GammaDistributionImpl.java b/src/main/java/org/apache/commons/math/distribution/GammaDistributionImpl.java
index 7ac64fd10..38607e051 100644
--- a/src/main/java/org/apache/commons/math/distribution/GammaDistributionImpl.java
+++ b/src/main/java/org/apache/commons/math/distribution/GammaDistributionImpl.java
@@ -20,8 +20,8 @@ import java.io.Serializable;
import org.apache.commons.math.MathException;
import org.apache.commons.math.MathRuntimeException;
+import org.apache.commons.math.exception.LocalizedFormats;
import org.apache.commons.math.special.Gamma;
-import org.apache.commons.math.util.LocalizedFormats;
/**
* The default implementation of {@link GammaDistribution}.
diff --git a/src/main/java/org/apache/commons/math/distribution/HypergeometricDistributionImpl.java b/src/main/java/org/apache/commons/math/distribution/HypergeometricDistributionImpl.java
index 6a484bc40..4eb3c749e 100644
--- a/src/main/java/org/apache/commons/math/distribution/HypergeometricDistributionImpl.java
+++ b/src/main/java/org/apache/commons/math/distribution/HypergeometricDistributionImpl.java
@@ -20,7 +20,7 @@ package org.apache.commons.math.distribution;
import java.io.Serializable;
import org.apache.commons.math.MathRuntimeException;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
import org.apache.commons.math.util.MathUtils;
/**
diff --git a/src/main/java/org/apache/commons/math/distribution/NormalDistributionImpl.java b/src/main/java/org/apache/commons/math/distribution/NormalDistributionImpl.java
index e4b4e663e..db3636e59 100644
--- a/src/main/java/org/apache/commons/math/distribution/NormalDistributionImpl.java
+++ b/src/main/java/org/apache/commons/math/distribution/NormalDistributionImpl.java
@@ -22,8 +22,8 @@ import java.io.Serializable;
import org.apache.commons.math.MathException;
import org.apache.commons.math.MathRuntimeException;
import org.apache.commons.math.MaxIterationsExceededException;
+import org.apache.commons.math.exception.LocalizedFormats;
import org.apache.commons.math.special.Erf;
-import org.apache.commons.math.util.LocalizedFormats;
/**
* Default implementation of
diff --git a/src/main/java/org/apache/commons/math/distribution/PascalDistributionImpl.java b/src/main/java/org/apache/commons/math/distribution/PascalDistributionImpl.java
index 8a71c137a..0038baa28 100644
--- a/src/main/java/org/apache/commons/math/distribution/PascalDistributionImpl.java
+++ b/src/main/java/org/apache/commons/math/distribution/PascalDistributionImpl.java
@@ -20,8 +20,8 @@ import java.io.Serializable;
import org.apache.commons.math.MathException;
import org.apache.commons.math.MathRuntimeException;
+import org.apache.commons.math.exception.LocalizedFormats;
import org.apache.commons.math.special.Beta;
-import org.apache.commons.math.util.LocalizedFormats;
import org.apache.commons.math.util.MathUtils;
/**
diff --git a/src/main/java/org/apache/commons/math/distribution/PoissonDistributionImpl.java b/src/main/java/org/apache/commons/math/distribution/PoissonDistributionImpl.java
index cdc4f127f..7c4300dca 100644
--- a/src/main/java/org/apache/commons/math/distribution/PoissonDistributionImpl.java
+++ b/src/main/java/org/apache/commons/math/distribution/PoissonDistributionImpl.java
@@ -20,8 +20,8 @@ import java.io.Serializable;
import org.apache.commons.math.MathException;
import org.apache.commons.math.MathRuntimeException;
+import org.apache.commons.math.exception.LocalizedFormats;
import org.apache.commons.math.special.Gamma;
-import org.apache.commons.math.util.LocalizedFormats;
import org.apache.commons.math.util.MathUtils;
/**
diff --git a/src/main/java/org/apache/commons/math/distribution/TDistributionImpl.java b/src/main/java/org/apache/commons/math/distribution/TDistributionImpl.java
index c16186c98..239597d84 100644
--- a/src/main/java/org/apache/commons/math/distribution/TDistributionImpl.java
+++ b/src/main/java/org/apache/commons/math/distribution/TDistributionImpl.java
@@ -20,9 +20,9 @@ import java.io.Serializable;
import org.apache.commons.math.MathException;
import org.apache.commons.math.MathRuntimeException;
+import org.apache.commons.math.exception.LocalizedFormats;
import org.apache.commons.math.special.Beta;
import org.apache.commons.math.special.Gamma;
-import org.apache.commons.math.util.LocalizedFormats;
/**
* Default implementation of
diff --git a/src/main/java/org/apache/commons/math/distribution/WeibullDistributionImpl.java b/src/main/java/org/apache/commons/math/distribution/WeibullDistributionImpl.java
index 30cedd3d8..d483c6cf1 100644
--- a/src/main/java/org/apache/commons/math/distribution/WeibullDistributionImpl.java
+++ b/src/main/java/org/apache/commons/math/distribution/WeibullDistributionImpl.java
@@ -20,7 +20,7 @@ package org.apache.commons.math.distribution;
import java.io.Serializable;
import org.apache.commons.math.MathRuntimeException;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Default implementation of
diff --git a/src/main/java/org/apache/commons/math/distribution/ZipfDistributionImpl.java b/src/main/java/org/apache/commons/math/distribution/ZipfDistributionImpl.java
index 457d8d1ba..db78748cb 100644
--- a/src/main/java/org/apache/commons/math/distribution/ZipfDistributionImpl.java
+++ b/src/main/java/org/apache/commons/math/distribution/ZipfDistributionImpl.java
@@ -20,7 +20,7 @@ package org.apache.commons.math.distribution;
import java.io.Serializable;
import org.apache.commons.math.MathRuntimeException;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
* Implementation for the {@link ZipfDistribution}.
diff --git a/src/main/java/org/apache/commons/math/estimation/AbstractEstimator.java b/src/main/java/org/apache/commons/math/estimation/AbstractEstimator.java
index eaefc5783..167b5deee 100644
--- a/src/main/java/org/apache/commons/math/estimation/AbstractEstimator.java
+++ b/src/main/java/org/apache/commons/math/estimation/AbstractEstimator.java
@@ -19,11 +19,11 @@ package org.apache.commons.math.estimation;
import java.util.Arrays;
+import org.apache.commons.math.exception.LocalizedFormats;
import org.apache.commons.math.linear.InvalidMatrixException;
import org.apache.commons.math.linear.LUDecompositionImpl;
import org.apache.commons.math.linear.MatrixUtils;
import org.apache.commons.math.linear.RealMatrix;
-import org.apache.commons.math.util.LocalizedFormats;
/**
* Base class for implementing estimators.
diff --git a/src/main/java/org/apache/commons/math/estimation/EstimationException.java b/src/main/java/org/apache/commons/math/estimation/EstimationException.java
index 012fe9947..0ee1e6825 100644
--- a/src/main/java/org/apache/commons/math/estimation/EstimationException.java
+++ b/src/main/java/org/apache/commons/math/estimation/EstimationException.java
@@ -18,8 +18,8 @@
package org.apache.commons.math.estimation;
import org.apache.commons.math.MathException;
-import org.apache.commons.math.util.DummyLocalizable;
-import org.apache.commons.math.util.Localizable;
+import org.apache.commons.math.exception.DummyLocalizable;
+import org.apache.commons.math.exception.Localizable;
/**
* This class represents exceptions thrown by the estimation solvers.
diff --git a/src/main/java/org/apache/commons/math/estimation/GaussNewtonEstimator.java b/src/main/java/org/apache/commons/math/estimation/GaussNewtonEstimator.java
index 078432b38..3e3ca31f3 100644
--- a/src/main/java/org/apache/commons/math/estimation/GaussNewtonEstimator.java
+++ b/src/main/java/org/apache/commons/math/estimation/GaussNewtonEstimator.java
@@ -19,13 +19,13 @@ package org.apache.commons.math.estimation;
import java.io.Serializable;
+import org.apache.commons.math.exception.LocalizedFormats;
import org.apache.commons.math.linear.InvalidMatrixException;
import org.apache.commons.math.linear.LUDecompositionImpl;
import org.apache.commons.math.linear.MatrixUtils;
import org.apache.commons.math.linear.RealMatrix;
import org.apache.commons.math.linear.RealVector;
import org.apache.commons.math.linear.ArrayRealVector;
-import org.apache.commons.math.util.LocalizedFormats;
/**
* This class implements a solver for estimation problems.
diff --git a/src/main/java/org/apache/commons/math/estimation/LevenbergMarquardtEstimator.java b/src/main/java/org/apache/commons/math/estimation/LevenbergMarquardtEstimator.java
index 44d802b52..1e747f693 100644
--- a/src/main/java/org/apache/commons/math/estimation/LevenbergMarquardtEstimator.java
+++ b/src/main/java/org/apache/commons/math/estimation/LevenbergMarquardtEstimator.java
@@ -19,7 +19,7 @@ package org.apache.commons.math.estimation;
import java.io.Serializable;
import java.util.Arrays;
-import org.apache.commons.math.util.LocalizedFormats;
+import org.apache.commons.math.exception.LocalizedFormats;
/**
diff --git a/src/main/java/org/apache/commons/math/exception/DimensionMismatchException.java b/src/main/java/org/apache/commons/math/exception/DimensionMismatchException.java
index 91c4ffa8f..70933b1ac 100644
--- a/src/main/java/org/apache/commons/math/exception/DimensionMismatchException.java
+++ b/src/main/java/org/apache/commons/math/exception/DimensionMismatchException.java
@@ -16,7 +16,6 @@
*/
package org.apache.commons.math.exception;
-import org.apache.commons.math.util.LocalizedFormats;
/**
* Exception to be thrown when two dimensions differ.
diff --git a/src/main/java/org/apache/commons/math/util/DummyLocalizable.java b/src/main/java/org/apache/commons/math/exception/DummyLocalizable.java
similarity index 97%
rename from src/main/java/org/apache/commons/math/util/DummyLocalizable.java
rename to src/main/java/org/apache/commons/math/exception/DummyLocalizable.java
index 9d37f42cc..b51e9d4ac 100644
--- a/src/main/java/org/apache/commons/math/util/DummyLocalizable.java
+++ b/src/main/java/org/apache/commons/math/exception/DummyLocalizable.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.util;
+package org.apache.commons.math.exception;
import java.util.Locale;
diff --git a/src/main/java/org/apache/commons/math/util/Localizable.java b/src/main/java/org/apache/commons/math/exception/Localizable.java
similarity index 96%
rename from src/main/java/org/apache/commons/math/util/Localizable.java
rename to src/main/java/org/apache/commons/math/exception/Localizable.java
index a3e12fe89..8d754fa27 100644
--- a/src/main/java/org/apache/commons/math/util/Localizable.java
+++ b/src/main/java/org/apache/commons/math/exception/Localizable.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.util;
+package org.apache.commons.math.exception;
import java.io.Serializable;
import java.util.Locale;
diff --git a/src/main/java/org/apache/commons/math/util/LocalizedFormats.java b/src/main/java/org/apache/commons/math/exception/LocalizedFormats.java
similarity index 99%
rename from src/main/java/org/apache/commons/math/util/LocalizedFormats.java
rename to src/main/java/org/apache/commons/math/exception/LocalizedFormats.java
index b6228efb9..a44802531 100644
--- a/src/main/java/org/apache/commons/math/util/LocalizedFormats.java
+++ b/src/main/java/org/apache/commons/math/exception/LocalizedFormats.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.commons.math.util;
+package org.apache.commons.math.exception;
import java.util.Locale;
import java.util.MissingResourceException;
diff --git a/src/main/java/org/apache/commons/math/exception/MathIllegalArgumentException.java b/src/main/java/org/apache/commons/math/exception/MathIllegalArgumentException.java
index 632d8f6ac..738d82c4d 100644
--- a/src/main/java/org/apache/commons/math/exception/MathIllegalArgumentException.java
+++ b/src/main/java/org/apache/commons/math/exception/MathIllegalArgumentException.java
@@ -19,7 +19,6 @@ package org.apache.commons.math.exception;
import java.util.Locale;
import java.util.List;
import java.util.ArrayList;
-import org.apache.commons.math.util.Localizable;
/**
* Base class for all preconditions violation exceptions.
diff --git a/src/main/java/org/apache/commons/math/exception/MathIllegalNumberException.java b/src/main/java/org/apache/commons/math/exception/MathIllegalNumberException.java
index dbba30201..5382630d8 100644
--- a/src/main/java/org/apache/commons/math/exception/MathIllegalNumberException.java
+++ b/src/main/java/org/apache/commons/math/exception/MathIllegalNumberException.java
@@ -16,7 +16,6 @@
*/
package org.apache.commons.math.exception;
-import org.apache.commons.math.util.Localizable;
/**
* Base class for exceptions raised by a wrong number.
diff --git a/src/main/java/org/apache/commons/math/exception/MessageFactory.java b/src/main/java/org/apache/commons/math/exception/MessageFactory.java
index 9a08cdee1..2d371c7c8 100644
--- a/src/main/java/org/apache/commons/math/exception/MessageFactory.java
+++ b/src/main/java/org/apache/commons/math/exception/MessageFactory.java
@@ -18,7 +18,6 @@ package org.apache.commons.math.exception;
import java.text.MessageFormat;
import java.util.Locale;
-import org.apache.commons.math.util.Localizable;
/**
* Class for constructing localized messages.
diff --git a/src/main/java/org/apache/commons/math/exception/NoDataException.java b/src/main/java/org/apache/commons/math/exception/NoDataException.java
index 6f3a1a0b6..2b14824ca 100644
--- a/src/main/java/org/apache/commons/math/exception/NoDataException.java
+++ b/src/main/java/org/apache/commons/math/exception/NoDataException.java
@@ -16,8 +16,6 @@
*/
package org.apache.commons.math.exception;
-import org.apache.commons.math.util.Localizable;
-import org.apache.commons.math.util.LocalizedFormats;
/**
* Exception to be thrown when the required data is missing.
diff --git a/src/main/java/org/apache/commons/math/exception/NonMonotonousSequenceException.java b/src/main/java/org/apache/commons/math/exception/NonMonotonousSequenceException.java
index 5c902a2dc..d6ae92c78 100644
--- a/src/main/java/org/apache/commons/math/exception/NonMonotonousSequenceException.java
+++ b/src/main/java/org/apache/commons/math/exception/NonMonotonousSequenceException.java
@@ -16,7 +16,6 @@
*/
package org.apache.commons.math.exception;
-import org.apache.commons.math.util.LocalizedFormats;
import org.apache.commons.math.util.MathUtils;
/**
diff --git a/src/main/java/org/apache/commons/math/exception/NotPositiveException.java b/src/main/java/org/apache/commons/math/exception/NotPositiveException.java
index 20998b202..55b56e844 100644
--- a/src/main/java/org/apache/commons/math/exception/NotPositiveException.java
+++ b/src/main/java/org/apache/commons/math/exception/NotPositiveException.java
@@ -16,7 +16,6 @@
*/
package org.apache.commons.math.exception;
-import org.apache.commons.math.util.Localizable;
/**
* Exception to be thrown when the argument is negative.
diff --git a/src/main/java/org/apache/commons/math/exception/NotStrictlyPositiveException.java b/src/main/java/org/apache/commons/math/exception/NotStrictlyPositiveException.java
index 3a3e23d8e..70a654205 100644
--- a/src/main/java/org/apache/commons/math/exception/NotStrictlyPositiveException.java
+++ b/src/main/java/org/apache/commons/math/exception/NotStrictlyPositiveException.java
@@ -16,7 +16,6 @@
*/
package org.apache.commons.math.exception;
-import org.apache.commons.math.util.Localizable;
/**
* Exception to be thrown when the argument is negative.
diff --git a/src/main/java/org/apache/commons/math/exception/NumberIsTooLargeException.java b/src/main/java/org/apache/commons/math/exception/NumberIsTooLargeException.java
index 0b6fba7b1..9c66dc117 100644
--- a/src/main/java/org/apache/commons/math/exception/NumberIsTooLargeException.java
+++ b/src/main/java/org/apache/commons/math/exception/NumberIsTooLargeException.java
@@ -16,8 +16,6 @@
*/
package org.apache.commons.math.exception;
-import org.apache.commons.math.util.Localizable;
-import org.apache.commons.math.util.LocalizedFormats;
/**
* Exception to be thrown when a number is too large.
diff --git a/src/main/java/org/apache/commons/math/exception/NumberIsTooSmallException.java b/src/main/java/org/apache/commons/math/exception/NumberIsTooSmallException.java
index d4833cf98..a846ff4dd 100644
--- a/src/main/java/org/apache/commons/math/exception/NumberIsTooSmallException.java
+++ b/src/main/java/org/apache/commons/math/exception/NumberIsTooSmallException.java
@@ -16,8 +16,6 @@
*/
package org.apache.commons.math.exception;
-import org.apache.commons.math.util.Localizable;
-import org.apache.commons.math.util.LocalizedFormats;
/**
* Exception to be thrown when a number is too small.
diff --git a/src/main/java/org/apache/commons/math/exception/OutOfRangeException.java b/src/main/java/org/apache/commons/math/exception/OutOfRangeException.java
index 59c07d4d3..eecfc6602 100644
--- a/src/main/java/org/apache/commons/math/exception/OutOfRangeException.java
+++ b/src/main/java/org/apache/commons/math/exception/OutOfRangeException.java
@@ -16,7 +16,6 @@
*/
package org.apache.commons.math.exception;
-import org.apache.commons.math.util.LocalizedFormats;
/**
* Exception to be thrown when some argument is out of range.
diff --git a/src/main/java/org/apache/commons/math/exception/ZeroNotAllowedException.java b/src/main/java/org/apache/commons/math/exception/ZeroNotAllowedException.java
index 126fe53ee..d0a24db8d 100644
--- a/src/main/java/org/apache/commons/math/exception/ZeroNotAllowedException.java
+++ b/src/main/java/org/apache/commons/math/exception/ZeroNotAllowedException.java
@@ -16,8 +16,6 @@
*/
package org.apache.commons.math.exception;
-import org.apache.commons.math.util.Localizable;
-import org.apache.commons.math.util.LocalizedFormats;
/**
* Exception to be thrown when zero is provided where it is not allowed.
diff --git a/src/main/java/org/apache/commons/math/exception/package.html b/src/main/java/org/apache/commons/math/exception/package.html
index c4e29c93d..bbfed051b 100644
--- a/src/main/java/org/apache/commons/math/exception/package.html
+++ b/src/main/java/org/apache/commons/math/exception/package.html
@@ -17,6 +17,7 @@
-->
- Specialized exceptions for algorithms errors.
+ Specialized exceptions for algorithms errors. The exceptions can be localized
+ using simple java properties.