commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r1054274 - in /commons/proper/math/branches/MATH_2_X/src/main: java/org/apache/commons/math/analysis/solvers/ java/org/apache/commons/math/exception/util/ resources/META-INF/localization/
Date Sat, 01 Jan 2011 19:29:31 GMT
Author: psteitz
Date: Sat Jan  1 19:29:31 2011
New Revision: 1054274

URL: http://svn.apache.org/viewvc?rev=1054274&view=rev
Log:
Fixed Checkstyle nits: repeated string, (spurious) hidden field.

Modified:
    commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverImpl.java
    commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/exception/util/LocalizedFormats.java
    commons/proper/math/branches/MATH_2_X/src/main/resources/META-INF/localization/LocalizedFormats_fr.properties

Modified: commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverImpl.java?rev=1054274&r1=1054273&r2=1054274&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverImpl.java
(original)
+++ commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverImpl.java
Sat Jan  1 19:29:31 2011
@@ -137,15 +137,15 @@ public abstract class UnivariateRealSolv
     }
 
     /** {@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);
     }
 
     /**

Modified: commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/exception/util/LocalizedFormats.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/exception/util/LocalizedFormats.java?rev=1054274&r1=1054273&r2=1054274&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/exception/util/LocalizedFormats.java
(original)
+++ commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/exception/util/LocalizedFormats.java
Sat Jan  1 19:29:31 2011
@@ -168,6 +168,7 @@ public enum LocalizedFormats implements 
     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)"),

Modified: commons/proper/math/branches/MATH_2_X/src/main/resources/META-INF/localization/LocalizedFormats_fr.properties
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/main/resources/META-INF/localization/LocalizedFormats_fr.properties?rev=1054274&r1=1054273&r2=1054274&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_X/src/main/resources/META-INF/localization/LocalizedFormats_fr.properties
(original)
+++ commons/proper/math/branches/MATH_2_X/src/main/resources/META-INF/localization/LocalizedFormats_fr.properties
Sat Jan  1 19:29:31 2011
@@ -140,6 +140,7 @@ NOT_ENOUGH_POINTS_IN_SPLINE_PARTITION = 
 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)



Mime
View raw message