diff --git a/android/guava/src/com/google/common/collect/Sets.java b/android/guava/src/com/google/common/collect/Sets.java index 691a4bf78130..4a62001f1f63 100644 --- a/android/guava/src/com/google/common/collect/Sets.java +++ b/android/guava/src/com/google/common/collect/Sets.java @@ -1737,6 +1737,8 @@ static boolean equalsImpl(Set> s, @CheckForNull Object object) { *
The returned navigable set will be serializable if the specified navigable set is * serializable. * + *
Java 8 users and later: Prefer {@link Collections#unmodifiableNavigableSet}.
+ *
* @param set the navigable set for which an unmodifiable view is to be returned
* @return an unmodifiable view of the specified navigable set
* @since 12.0
@@ -1881,6 +1883,8 @@ public NavigableSet The returned navigable set will be serializable if the specified navigable set is
* serializable.
*
+ * Java 8 users and later: Prefer {@link Collections#synchronizedNavigableSet}.
+ *
* @param navigableSet the navigable set to be "wrapped" in a synchronized navigable set.
* @return a synchronized view of the specified navigable set.
* @since 13.0
diff --git a/guava/src/com/google/common/collect/Sets.java b/guava/src/com/google/common/collect/Sets.java
index c00cfae0cc6f..057888f3e680 100644
--- a/guava/src/com/google/common/collect/Sets.java
+++ b/guava/src/com/google/common/collect/Sets.java
@@ -1796,6 +1796,8 @@ static boolean equalsImpl(Set> s, @CheckForNull Object object) {
* The returned navigable set will be serializable if the specified navigable set is
* serializable.
*
+ * Java 8 users and later: Prefer {@link Collections#unmodifiableNavigableSet}.
+ *
* @param set the navigable set for which an unmodifiable view is to be returned
* @return an unmodifiable view of the specified navigable set
* @since 12.0
@@ -1962,6 +1964,8 @@ public NavigableSet The returned navigable set will be serializable if the specified navigable set is
* serializable.
*
+ * Java 8 users and later: Prefer {@link Collections#synchronizedNavigableSet}.
+ *
* @param navigableSet the navigable set to be "wrapped" in a synchronized navigable set.
* @return a synchronized view of the specified navigable set.
* @since 13.0