Skip to content

Commit c1e6de2

Browse files
perceptron8Google Java Core Libraries
authored andcommitted
Mention stability in Iterables.mergeSorted() javadocs.
Fixes #7997 Relevant to #5773 Followup to #7989 / #7996 RELNOTES=n/a PiperOrigin-RevId: 807777880
1 parent 4dc93be commit c1e6de2

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

android/guava/src/com/google/common/collect/Iterables.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,8 +1061,9 @@ public static boolean isEmpty(Iterable<?> iterable) {
10611061
* <p>Callers must ensure that the source {@code iterables} are in non-descending order as this
10621062
* method does not sort its input.
10631063
*
1064-
* <p>For any equivalent elements across all {@code iterables}, it is undefined which element is
1065-
* returned first.
1064+
* <p>For any equivalent elements across all {@code iterables}, elements are returned in the order
1065+
* of their source iterables. That is, if element A from iterable 1 and element B from iterable 2
1066+
* compare as equal, A will be returned before B if iterable 1 was passed before iterable 2.
10661067
*
10671068
* @since 11.0
10681069
*/

guava/src/com/google/common/collect/Iterables.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,8 +1067,9 @@ public static boolean isEmpty(Iterable<?> iterable) {
10671067
* <p>Callers must ensure that the source {@code iterables} are in non-descending order as this
10681068
* method does not sort its input.
10691069
*
1070-
* <p>For any equivalent elements across all {@code iterables}, it is undefined which element is
1071-
* returned first.
1070+
* <p>For any equivalent elements across all {@code iterables}, elements are returned in the order
1071+
* of their source iterables. That is, if element A from iterable 1 and element B from iterable 2
1072+
* compare as equal, A will be returned before B if iterable 1 was passed before iterable 2.
10721073
*
10731074
* @since 11.0
10741075
*/

0 commit comments

Comments
 (0)