aboutsummaryrefslogtreecommitdiff
path: root/guava/src/com/google/common/collect/SingletonImmutableTable.java
diff options
context:
space:
mode:
Diffstat (limited to 'guava/src/com/google/common/collect/SingletonImmutableTable.java')
-rw-r--r--guava/src/com/google/common/collect/SingletonImmutableTable.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/guava/src/com/google/common/collect/SingletonImmutableTable.java b/guava/src/com/google/common/collect/SingletonImmutableTable.java
index cfaeadb41..6f839ceb4 100644
--- a/guava/src/com/google/common/collect/SingletonImmutableTable.java
+++ b/guava/src/com/google/common/collect/SingletonImmutableTable.java
@@ -19,6 +19,8 @@ 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 java.util.Map;
/**
@@ -77,7 +79,9 @@ class SingletonImmutableTable<R, C, V> extends ImmutableTable<R, C, V> {
}
@Override
- SerializedForm createSerializedForm() {
+ @J2ktIncompatible // serialization
+ @GwtIncompatible // serialization
+ Object writeReplace() {
return SerializedForm.create(this, new int[] {0}, new int[] {0});
}
}