We don't need to read and write wrap straight up calls to readObject() and

writeObject() as that handles nulls for us (and of course because that's how
it's done when streaming using reflection).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4704 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2007-05-09 01:15:28 +00:00
parent 66a4151c86
commit cf949410ce
@@ -254,7 +254,8 @@ public class InstrumentStreamableTask extends Task
}
}
return readWrap(field, name + " = (" + type.getName() + ")ins.readObject();");
// no need to wrap streamable instances
return (name + " = (" + type.getName() + ")ins.readObject();");
}
protected String getFieldWriter (CtField field)
@@ -302,7 +303,8 @@ public class InstrumentStreamableTask extends Task
}
}
return writeWrap(field, "out.writeObject(" + name + ");");
// no need to wrap streamable instances
return "out.writeObject(" + name + ");";
}
protected String readWrap (CtField field, String body)