From e59135fdd520dfdb5df1b8d76f3000ca3e1afa34 Mon Sep 17 00:00:00 2001 From: Dave Hoover Date: Fri, 15 Oct 2010 20:16:11 +0000 Subject: [PATCH] Values in StreamableHash[Int]Maps must be Streamable, so let the compiler know. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6208 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/util/StreamableHashIntMap.java | 2 +- src/java/com/threerings/util/StreamableHashMap.java | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/java/com/threerings/util/StreamableHashIntMap.java b/src/java/com/threerings/util/StreamableHashIntMap.java index d287e1282..fd63f39fe 100644 --- a/src/java/com/threerings/util/StreamableHashIntMap.java +++ b/src/java/com/threerings/util/StreamableHashIntMap.java @@ -36,7 +36,7 @@ import com.threerings.io.Streamable; * @see Streamable * @param the type of value stored in this map. */ -public class StreamableHashIntMap extends HashIntMap +public class StreamableHashIntMap extends HashIntMap implements Streamable { /** diff --git a/src/java/com/threerings/util/StreamableHashMap.java b/src/java/com/threerings/util/StreamableHashMap.java index c97363f81..0860f6917 100644 --- a/src/java/com/threerings/util/StreamableHashMap.java +++ b/src/java/com/threerings/util/StreamableHashMap.java @@ -38,13 +38,13 @@ import com.threerings.io.Streamable; * @param the type of key stored in this map. * @param the type of value stored in this map. */ -public class StreamableHashMap extends HashMap +public class StreamableHashMap extends HashMap implements Streamable { /** * Creates an empty StreamableHashMap. */ - public static StreamableHashMap newMap () + public static StreamableHashMap newMap () { return new StreamableHashMap(); } @@ -52,7 +52,8 @@ public class StreamableHashMap extends HashMap /** * Creates StreamableHashMap populated with the same values as the provided Map. */ - public static StreamableHashMap newMap (Map map) + public static StreamableHashMap newMap ( + Map map) { return new StreamableHashMap(map); }