You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2018/02/22 12:28:00 UTC

[10/10] commons-rng git commit: PMD.

PMD.


Project: http://git-wip-us.apache.org/repos/asf/commons-rng/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-rng/commit/32ed8c65
Tree: http://git-wip-us.apache.org/repos/asf/commons-rng/tree/32ed8c65
Diff: http://git-wip-us.apache.org/repos/asf/commons-rng/diff/32ed8c65

Branch: refs/heads/master
Commit: 32ed8c65941ec9f23c75c2dc6edea850c1b61477
Parents: 9cc27a5
Author: Gilles <er...@apache.org>
Authored: Thu Feb 22 13:26:48 2018 +0100
Committer: Gilles <er...@apache.org>
Committed: Thu Feb 22 13:26:48 2018 +0100

----------------------------------------------------------------------
 .../java/org/apache/commons/rng/core/source32/JDKRandom.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-rng/blob/32ed8c65/commons-rng-core/src/main/java/org/apache/commons/rng/core/source32/JDKRandom.java
----------------------------------------------------------------------
diff --git a/commons-rng-core/src/main/java/org/apache/commons/rng/core/source32/JDKRandom.java b/commons-rng-core/src/main/java/org/apache/commons/rng/core/source32/JDKRandom.java
index fe9b404..1312814 100644
--- a/commons-rng-core/src/main/java/org/apache/commons/rng/core/source32/JDKRandom.java
+++ b/commons-rng-core/src/main/java/org/apache/commons/rng/core/source32/JDKRandom.java
@@ -75,7 +75,7 @@ public class JDKRandom extends IntProvider {
             return bos.toByteArray();
         } catch (IOException e) {
             // Workaround checked exception.
-            throw new RuntimeException(e);
+            throw new IllegalStateException(e);
         }
     }
 
@@ -89,10 +89,10 @@ public class JDKRandom extends IntProvider {
             delegate = (Random) ois.readObject();
         } catch (ClassNotFoundException e) {
             // Workaround checked exception.
-            throw new RuntimeException(e);
+            throw new IllegalStateException(e);
         } catch (IOException e) {
             // Workaround checked exception.
-            throw new RuntimeException(e);
+            throw new IllegalStateException(e);
         }
     }
 }