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:
@@ -379,11 +379,10 @@ public class RandomUtil
|
|||||||
"Must have at least one element [count=" + count + "]");
|
"Must have at least one element [count=" + count + "]");
|
||||||
}
|
}
|
||||||
|
|
||||||
T value = iter.next();
|
|
||||||
for (int ii = 0, ll = getInt(count, r); ii < ll; ii++) {
|
for (int ii = 0, ll = getInt(count, r); ii < ll; ii++) {
|
||||||
value = iter.next();
|
iter.next();
|
||||||
}
|
}
|
||||||
return value;
|
return iter.next();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user