From e8f5f9b904812a85e3773f54bb8a78df5667289d Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 12 Oct 2001 20:11:53 +0000 Subject: [PATCH] We want Streamable.class.isAssignableFrom(clazz) rather than the other way around. I always mess that up because it's backwards from instanceof. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@457 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/presents/io/FieldMarshallerRegistry.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/com/threerings/presents/io/FieldMarshallerRegistry.java b/src/java/com/threerings/presents/io/FieldMarshallerRegistry.java index b6fa6e760..9181b48fb 100644 --- a/src/java/com/threerings/presents/io/FieldMarshallerRegistry.java +++ b/src/java/com/threerings/presents/io/FieldMarshallerRegistry.java @@ -1,5 +1,5 @@ // -// $Id: FieldMarshallerRegistry.java,v 1.7 2001/10/12 19:28:43 mdb Exp $ +// $Id: FieldMarshallerRegistry.java,v 1.8 2001/10/12 20:11:53 mdb Exp $ package com.threerings.presents.dobj.io; @@ -32,7 +32,7 @@ public class FieldMarshallerRegistry // case we stick the streamable marshaller into the registry for // this class if (marsh == null) { - if (clazz.isAssignableFrom(Streamable.class)) { + if (Streamable.class.isAssignableFrom(clazz)) { marsh = _streamableMarsh; _registry.put(clazz, marsh); }