Small stupid optimization I had lying around.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2546 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
ray.j.greenwell
2009-04-22 21:36:53 +00:00
parent 2b9952508c
commit 2b18264feb
+2 -3
View File
@@ -379,11 +379,10 @@ public class RandomUtil
"Must have at least one element [count=" + count + "]");
}
T value = iter.next();
for (int ii = 0, ll = getInt(count, r); ii < ll; ii++) {
value = iter.next();
iter.next();
}
return value;
return iter.next();
}
/**