Import Transport if used in invocation method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5542 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -52,6 +52,7 @@ import com.samskivert.util.StringUtil;
|
||||
import com.samskivert.velocity.VelocityUtil;
|
||||
|
||||
import com.threerings.presents.annotation.TransportHint;
|
||||
import com.threerings.presents.net.Transport;
|
||||
import com.threerings.presents.client.InvocationService.InvocationListener;
|
||||
|
||||
/**
|
||||
@@ -129,6 +130,11 @@ public abstract class InvocationTask extends Task
|
||||
|
||||
imports.add(args[ii]);
|
||||
}
|
||||
|
||||
// import Transport if used
|
||||
if (!StringUtil.isBlank(getTransport())) {
|
||||
imports.add(Transport.class);
|
||||
}
|
||||
}
|
||||
|
||||
public String getCode ()
|
||||
|
||||
Reference in New Issue
Block a user