commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From celes...@apache.org
Subject svn commit: r1414536 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/RandomDataGenerator.java
Date Wed, 28 Nov 2012 05:51:27 GMT
Author: celestin
Date: Wed Nov 28 05:51:27 2012
New Revision: 1414536

URL: http://svn.apache.org/viewvc?rev=1414536&view=rev
Log:
Checkstyle: removed exception from signature, as this exception will never be raised.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/RandomDataGenerator.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/RandomDataGenerator.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/RandomDataGenerator.java?rev=1414536&r1=1414535&r2=1414536&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/RandomDataGenerator.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/RandomDataGenerator.java
Wed Nov 28 05:51:27 2012
@@ -749,12 +749,13 @@ public class RandomDataGenerator impleme
      * @param list list to be shuffled
      * @param end element past which shuffling begins
      */
-    private void shuffle(int[] list, int end) throws NumberIsTooLargeException {
+    private void shuffle(int[] list, int end) {
         int target = 0;
         for (int i = list.length - 1; i >= end; i--) {
             if (i == 0) {
                 target = 0;
             } else {
+                // NumberIsTooLargeException cannot occur
                 target = nextInt(0, i);
             }
             int temp = list[target];



Mime
View raw message