Author: luc Date: Tue Oct 6 18:53:57 2009 New Revision: 822429 URL: http://svn.apache.org/viewvc?rev=822429&view=rev Log: fixed missing throw Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolatingFunction.java commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolator.java Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolatingFunction.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolatingFunction.java?rev=822429&r1=822428&r2=822429&view=diff ============================================================================== --- commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolatingFunction.java (original) +++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolatingFunction.java Tue Oct 6 18:53:57 2009 @@ -151,7 +151,7 @@ UnitSphereRandomVectorGenerator rand) throws DimensionMismatchException, IllegalArgumentException { if (xval.length == 0 || xval[0] == null) { - MathRuntimeException.createIllegalArgumentException("no data"); + throw MathRuntimeException.createIllegalArgumentException("no data"); } if (xval.length != yval.length) { Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolator.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolator.java?rev=822429&r1=822428&r2=822429&view=diff ============================================================================== --- commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolator.java (original) +++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolator.java Tue Oct 6 18:53:57 2009 @@ -98,7 +98,7 @@ */ public void setBrightnessExponent(final int brightnessExponent) { if (brightnessExponent < 0) { - MathRuntimeException.createIllegalArgumentException( + throw MathRuntimeException.createIllegalArgumentException( "brightness exponent should be positive or null, but got {0}", brightnessExponent); } @@ -112,7 +112,7 @@ */ public void setMicropshereElements(final int microsphereElements) { if (microsphereElements < 0) { - MathRuntimeException.createIllegalArgumentException( + throw MathRuntimeException.createIllegalArgumentException( "number of microsphere elements must be positive, but got {0}", microsphereElements); }