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 299adadbc..8c260c665 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 @@ -137,15 +137,15 @@ public abstract class UnivariateRealSolverImpl } /** {@inheritDoc} */ - public double solve(int maxEval, UnivariateRealFunction f, double min, double max) + public double solve(int maxEval, UnivariateRealFunction function, double min, double max) throws ConvergenceException, MathUserException { - throw new UnsupportedOperationException("Method not overriden"); + throw MathRuntimeException.createUnsupportedOperationException(LocalizedFormats.NOT_OVERRIDEN); } /** {@inheritDoc} */ - public double solve(int maxEval, UnivariateRealFunction f, double min, double max, double startValue) + public double solve(int maxEval, UnivariateRealFunction function, double min, double max, double startValue) throws ConvergenceException, MathUserException, IllegalArgumentException { - throw new UnsupportedOperationException("Method not overriden"); + throw MathRuntimeException.createUnsupportedOperationException(LocalizedFormats.NOT_OVERRIDEN); } /** diff --git a/src/main/java/org/apache/commons/math/exception/util/LocalizedFormats.java b/src/main/java/org/apache/commons/math/exception/util/LocalizedFormats.java index 146aeb091..6cf536c7e 100644 --- a/src/main/java/org/apache/commons/math/exception/util/LocalizedFormats.java +++ b/src/main/java/org/apache/commons/math/exception/util/LocalizedFormats.java @@ -168,6 +168,7 @@ public enum LocalizedFormats implements Localizable { NOT_INCREASING_NUMBER_OF_POINTS("points {0} and {1} are not increasing ({2} > {3})"), NOT_INCREASING_SEQUENCE("points {3} and {2} are not increasing ({1} > {0})"), /* keep */ NOT_MULTIPLICATION_COMPATIBLE_MATRICES("{0}x{1} and {2}x{3} matrices are not multiplication compatible"), + NOT_OVERRIDEN("method not overriden"), NOT_POSITIVE_ALPHA("alpha must be positive ({0})"), NOT_POSITIVE_BETA("beta must be positive ({0})"), NOT_POSITIVE_COLUMNDIMENSION("invalid column dimension: {0} (must be positive)"), diff --git a/src/main/resources/META-INF/localization/LocalizedFormats_fr.properties b/src/main/resources/META-INF/localization/LocalizedFormats_fr.properties index 14f0b3524..daac310f4 100644 --- a/src/main/resources/META-INF/localization/LocalizedFormats_fr.properties +++ b/src/main/resources/META-INF/localization/LocalizedFormats_fr.properties @@ -140,6 +140,7 @@ NOT_ENOUGH_POINTS_IN_SPLINE_PARTITION = une partiction spline n\u00e9cessite au NOT_INCREASING_NUMBER_OF_POINTS = les points {0} et {1} ne sont pas croissants ({2} > {3}) NOT_INCREASING_SEQUENCE = les points {3} et {2} ne sont pas croissants ({1} > {0}) NOT_MULTIPLICATION_COMPATIBLE_MATRICES = les dimensions {0}x{1} et {2}x{3} sont incompatibles pour la multiplication matricielle +NOT_OVERRIDEN = m\u00e9thode n'est pas remplac\u00e9e NOT_POSITIVE_ALPHA = alpha doit \u00eatre positif ({0}) NOT_POSITIVE_BETA = beta doit \u00eatre positif ({0}) NOT_POSITIVE_COLUMNDIMENSION = nombre de colonnes invalide : {0} (doit \u00eatre positif)