diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-02-03 00:32:48 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-02-03 00:32:48 +0000 |
commit | f25b489aa8cf9cce098394ef0e7f81c79c634f26 (patch) | |
tree | cbc7e4894708533a0ddc4e61da1d74e64393e0e1 /android/guava/src/com/google/common/collect/RegularContiguousSet.java | |
parent | 205e5f2e2dc52e2212426602327ea0d630e1731f (diff) | |
parent | 0ccd979d1e45372e0b57851529eddd9c40671577 (diff) | |
download | guava-simpleperf-release.tar.gz |
Merge "Snap for 11400057 from fcb68273955c94ebe12fda34018935b0c25d56dc to simpleperf-release" into simpleperf-releasesimpleperf-release
Diffstat (limited to 'android/guava/src/com/google/common/collect/RegularContiguousSet.java')
-rw-r--r-- | android/guava/src/com/google/common/collect/RegularContiguousSet.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/android/guava/src/com/google/common/collect/RegularContiguousSet.java b/android/guava/src/com/google/common/collect/RegularContiguousSet.java index 9c2e5a26f..8159d107b 100644 --- a/android/guava/src/com/google/common/collect/RegularContiguousSet.java +++ b/android/guava/src/com/google/common/collect/RegularContiguousSet.java @@ -143,6 +143,15 @@ final class RegularContiguousSet<C extends Comparable> extends ContiguousSet<C> checkElementIndex(i, size()); return domain.offset(first(), i); } + + // redeclare to help optimizers with b/310253115 + @SuppressWarnings("RedundantOverride") + @Override + @J2ktIncompatible // serialization + @GwtIncompatible // serialization + Object writeReplace() { + return super.writeReplace(); + } }; } else { return super.createAsList(); |