aboutsummaryrefslogtreecommitdiff
path: root/guava/src/com/google/common/collect/ImmutableCollection.java
diff options
context:
space:
mode:
authorSadaf Ebrahimi <sadafebrahimi@google.com>2024-01-03 18:28:12 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2024-01-03 18:28:12 +0000
commit3a26b44cf26f6ce43348612f69209df5d367f2ba (patch)
treecbc7e4894708533a0ddc4e61da1d74e64393e0e1 /guava/src/com/google/common/collect/ImmutableCollection.java
parent853ca10c27d5c306f314d4a498813393a65fd479 (diff)
parent422eb80feae2e73eda9678ecaacbd087d4b7020b (diff)
downloadguava-3a26b44cf26f6ce43348612f69209df5d367f2ba.tar.gz
Merge "Upgrade guava to v33.0.0" into main am: fcb6827395 am: 0be00b5218 am: 422eb80fea
Original change: https://android-review.googlesource.com/c/platform/external/guava/+/2894060 Change-Id: I9a7385b0f8af3ec832abe8b207a1c25e1d5dc9e5 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'guava/src/com/google/common/collect/ImmutableCollection.java')
-rw-r--r--guava/src/com/google/common/collect/ImmutableCollection.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/guava/src/com/google/common/collect/ImmutableCollection.java b/guava/src/com/google/common/collect/ImmutableCollection.java
index 68b175ffa..ee18f0d9c 100644
--- a/guava/src/com/google/common/collect/ImmutableCollection.java
+++ b/guava/src/com/google/common/collect/ImmutableCollection.java
@@ -19,6 +19,7 @@ package com.google.common.collect;
import static com.google.common.base.Preconditions.checkNotNull;
import com.google.common.annotations.GwtCompatible;
+import com.google.common.annotations.GwtIncompatible;
import com.google.common.annotations.J2ktIncompatible;
import com.google.errorprone.annotations.CanIgnoreReturnValue;
import com.google.errorprone.annotations.DoNotCall;
@@ -392,6 +393,7 @@ public abstract class ImmutableCollection<E> extends AbstractCollection<E> imple
}
@J2ktIncompatible // serialization
+ @GwtIncompatible // serialization
Object writeReplace() {
// We serialize by default to ImmutableList, the simplest thing that works.
return new ImmutableList.SerializedForm(toArray());
@@ -504,4 +506,6 @@ public abstract class ImmutableCollection<E> extends AbstractCollection<E> imple
*/
public abstract ImmutableCollection<E> build();
}
+
+ private static final long serialVersionUID = 0xcafebabe;
}