diff options
author | Sadaf Ebrahimi <sadafebrahimi@google.com> | 2024-01-02 18:15:48 +0000 |
---|---|---|
committer | Sadaf Ebrahimi <sadafebrahimi@google.com> | 2024-01-02 18:23:02 +0000 |
commit | 1b60467f3624ad6bae92bb65652a10c49639023e (patch) | |
tree | cbc7e4894708533a0ddc4e61da1d74e64393e0e1 /guava/src/com/google/common/collect/RegularImmutableAsList.java | |
parent | eec82bd5ace8fd2c4ba647f153c4c03e1bb41268 (diff) | |
parent | d258d3ed3336934354f340518065b04528fb1f2b (diff) | |
download | guava-1b60467f3624ad6bae92bb65652a10c49639023e.tar.gz |
Upgrade guava to v33.0.0
This project was upgraded with external_updater.
Usage: tools/external_updater/updater.sh update guava
For more info, check https://cs.android.com/android/platform/superproject/+/main:tools/external_updater/README.md
Test: TreeHugger
Change-Id: I9a54a36317484a947b630a037e23c9919c2951cd
Diffstat (limited to 'guava/src/com/google/common/collect/RegularImmutableAsList.java')
-rw-r--r-- | guava/src/com/google/common/collect/RegularImmutableAsList.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/guava/src/com/google/common/collect/RegularImmutableAsList.java b/guava/src/com/google/common/collect/RegularImmutableAsList.java index 0e3fe4ec8..bc4d8ae5d 100644 --- a/guava/src/com/google/common/collect/RegularImmutableAsList.java +++ b/guava/src/com/google/common/collect/RegularImmutableAsList.java @@ -18,6 +18,7 @@ package com.google.common.collect; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; +import com.google.common.annotations.J2ktIncompatible; import java.util.function.Consumer; import javax.annotation.CheckForNull; import org.checkerframework.checker.nullness.qual.Nullable; @@ -91,4 +92,13 @@ class RegularImmutableAsList<E> extends ImmutableAsList<E> { public E get(int index) { return delegateList.get(index); } + + // redeclare to help optimizers with b/310253115 + @SuppressWarnings("RedundantOverride") + @Override + @J2ktIncompatible // serialization + @GwtIncompatible // serialization + Object writeReplace() { + return super.writeReplace(); + } } |