From 57e629dfdb1c3f9af1f3927e2260d73fe2aafc47 Mon Sep 17 00:00:00 2001 From: "ray.j.greenwell" Date: Thu, 14 Oct 2010 20:42:46 +0000 Subject: [PATCH] It should be obvious that this will NPE, but I've documented it for the others... git-svn-id: https://samskivert.googlecode.com/svn/trunk@2919 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- src/main/java/com/samskivert/util/Randoms.java | 1 + 1 file changed, 1 insertion(+) 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)