More style cleanup.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5249 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-07-22 13:39:42 +00:00
parent c743432676
commit 67ce73b61d
9 changed files with 29 additions and 32 deletions
@@ -212,7 +212,7 @@ public abstract class FieldMarshaller
protected static void createMarshallers ()
{
// create our table
_marshallers = new HashMap<Class,FieldMarshaller>();
_marshallers = new HashMap<Class, FieldMarshaller>();
// create a generic marshaller for streamable instances
FieldMarshaller gmarsh = new FieldMarshaller() {
@@ -354,7 +354,7 @@ public abstract class FieldMarshaller
}
/** Contains a mapping from field type to field marshaller instance for that type. */
protected static HashMap<Class,FieldMarshaller> _marshallers;
protected static HashMap<Class, FieldMarshaller> _marshallers;
/** Defines the signature to a custom field reader method. */
protected static final Class[] READER_ARGS = { ObjectInputStream.class };
@@ -64,7 +64,7 @@ public class ObjectInputStream extends DataInputStream
public void addTranslation (String oldname, String newname)
{
if (_translations == null) {
_translations = new HashMap<String,String>();
_translations = new HashMap<String, String>();
}
_translations.put(oldname, newname);
}
@@ -251,7 +251,7 @@ public class ObjectInputStream extends DataInputStream
protected ClassLoader _loader = getClass().getClassLoader();
/** An optional set of class name translations to use when unserializing objects. */
protected HashMap<String,String> _translations;
protected HashMap<String, String> _translations;
/** Used to activate verbose debug logging. */
protected static final boolean STREAM_DEBUG = false;
@@ -51,7 +51,7 @@ public class ObjectOutputStream extends DataOutputStream
public void addTranslation (String className, String streamedName)
{
if (_translations == null) {
_translations = new HashMap<String,String>();
_translations = new HashMap<String, String>();
}
_translations.put(className, streamedName);
}
@@ -71,7 +71,7 @@ public class ObjectOutputStream extends DataOutputStream
// create our classmap if necessary
if (_classmap == null) {
_classmap = new HashMap<Class,ClassMapping>();
_classmap = new HashMap<Class, ClassMapping>();
}
// otherwise, look up the class mapping record
@@ -200,7 +200,7 @@ public class ObjectOutputStream extends DataOutputStream
/** Used to map classes to numeric codes and the {@link Streamer} instance used to write
* them. */
protected HashMap<Class,ClassMapping> _classmap;
protected HashMap<Class, ClassMapping> _classmap;
/** A counter used to assign codes to streamed classes. */
protected short _nextCode = 1;
@@ -212,5 +212,5 @@ public class ObjectOutputStream extends DataOutputStream
protected Streamer _streamer;
/** An optional set of class name translations to use when serializing objects. */
protected HashMap<String,String> _translations;
protected HashMap<String, String> _translations;
}
+2 -2
View File
@@ -475,7 +475,7 @@ public class Streamer
*/
protected static void createStreamers ()
{
_streamers = new HashMap<Class,Streamer>();
_streamers = new HashMap<Class, Streamer>();
// register all of the basic streamers
int bscount = BasicStreamers.BSTREAMER_TYPES.length;
@@ -506,7 +506,7 @@ public class Streamer
protected Method _writer;
/** Contains the mapping from class names to configured streamer instances. */
protected static HashMap<Class,Streamer> _streamers;
protected static HashMap<Class, Streamer> _streamers;
/** The name of the custom reader method. */
protected static final String READER_METHOD_NAME = "readObject";