diff options
Diffstat (limited to 'guava-gwt/src/com/google/common/collect/SingletonImmutableList_CustomFieldSerializer.java')
-rw-r--r-- | guava-gwt/src/com/google/common/collect/SingletonImmutableList_CustomFieldSerializer.java | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/guava-gwt/src/com/google/common/collect/SingletonImmutableList_CustomFieldSerializer.java b/guava-gwt/src/com/google/common/collect/SingletonImmutableList_CustomFieldSerializer.java index b2a549d22..712e2758a 100644 --- a/guava-gwt/src/com/google/common/collect/SingletonImmutableList_CustomFieldSerializer.java +++ b/guava-gwt/src/com/google/common/collect/SingletonImmutableList_CustomFieldSerializer.java @@ -21,23 +21,25 @@ import com.google.gwt.user.client.rpc.SerializationStreamReader; import com.google.gwt.user.client.rpc.SerializationStreamWriter; /** - * This class implements the GWT serialization of {@link SingletonImmutableList}. + * This class implements the GWT serialization of + * {@link SingletonImmutableList}. * * @author Chris Povirk */ public class SingletonImmutableList_CustomFieldSerializer { - public static void deserialize( - SerializationStreamReader reader, SingletonImmutableList<?> instance) {} + public static void deserialize(SerializationStreamReader reader, + SingletonImmutableList<?> instance) { + } - public static SingletonImmutableList<Object> instantiate(SerializationStreamReader reader) - throws SerializationException { + public static SingletonImmutableList<Object> instantiate( + SerializationStreamReader reader) throws SerializationException { Object element = reader.readObject(); - return new SingletonImmutableList<>(element); + return new SingletonImmutableList<Object>(element); } - - public static void serialize(SerializationStreamWriter writer, SingletonImmutableList<?> instance) - throws SerializationException { + + public static void serialize(SerializationStreamWriter writer, + SingletonImmutableList<?> instance) throws SerializationException { writer.writeObject(instance.element); } } |