Skip to content

Commit 1ce4fdc

Browse files
committed
enhance javadoc of randomSubsetOf
1 parent 2757c07 commit 1ce4fdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/src/main/java/org/elasticsearch/test/ESTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ public static <T> List<T> randomSubsetOf(int size, T... values) {
969969
}
970970

971971
/**
972-
* Returns a random subset of values (including a potential empty list)
972+
* Returns a random subset of values (including a potential empty list, or the full original list)
973973
*/
974974
public static <T> List<T> randomSubsetOf(Collection<T> collection) {
975975
return randomSubsetOf(randomInt(collection.size()), collection);

0 commit comments

Comments
 (0)