Pull in imports from added methods and fields, and kill the extra space between fields

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6067 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Charlie Groves
2010-05-11 22:05:09 +00:00
parent 9043e99f7a
commit 4ab52e1c1e
2 changed files with 52 additions and 56 deletions
@@ -44,6 +44,8 @@ import com.google.common.collect.Lists;
import com.samskivert.io.StreamUtil;
import com.samskivert.velocity.VelocityUtil;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamable;
import com.threerings.util.ActionScript;
@@ -178,6 +180,8 @@ public class GenActionScriptTask extends Task
// have from the Java class
ActionScriptSource assrc = new ActionScriptSource(sclass);
assrc.absorbJava(source);
assrc.imports.add(ObjectInputStream.class.getName());
assrc.imports.add(ObjectOutputStream.class.getName());
// see if our parent also implements Streamable
boolean needSuper = Streamable.class.isAssignableFrom(sclass.getSuperclass());