A healthy dash of google-collections

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5798 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Dave Hoover
2009-05-23 01:04:08 +00:00
parent 1bdb2cae16
commit b222eed2fd
34 changed files with 152 additions and 91 deletions
@@ -4,12 +4,13 @@
package com.threerings.io;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import java.io.IOException;
import java.io.OutputStream;
import com.google.common.collect.Sets;
/**
* Extends {@link ObjectOutputStream} for use in unreliable channels, where we must transmit class
* mappings with every object until we are explicitly notified that the receiver has cached the
@@ -193,8 +194,8 @@ public class UnreliableObjectOutputStream extends ObjectOutputStream
}
/** The set of classes for which we have written mappings. */
protected Set<Class<?>> _mappedClasses = new HashSet<Class<?>>();
protected Set<Class<?>> _mappedClasses = Sets.newHashSet();
/** The set of pooled strings for which we have written mappings. */
protected Set<String> _mappedInterns = new HashSet<String>();
protected Set<String> _mappedInterns = Sets.newHashSet();
}