diff --git a/src/main/java/com/samskivert/util/Randoms.java b/src/main/java/com/samskivert/util/Randoms.java index e29fb4a2..c82886f9 100644 --- a/src/main/java/com/samskivert/util/Randoms.java +++ b/src/main/java/com/samskivert/util/Randoms.java @@ -190,6 +190,7 @@ public class Randoms *

Implementation note: a random number is generated for every entry with a * non-zero weight after the first such entry. * + * @throws NullPointerException if the map is null. * @throws IllegalArgumentException if any weight is less than 0. */ public T pick (Map weightMap, T ifEmpty)