We need this cast() method on InvocationListener too since that's getting used that way in genservice.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6297 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -129,6 +129,15 @@ public class InvocationMarshaller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Performs type casts in a way that works for parameterized types as well as simple types.
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
protected <K> K cast (Object value)
|
||||||
|
{
|
||||||
|
return (K)value;
|
||||||
|
}
|
||||||
|
|
||||||
/** On the server, the id of the invocation method. */
|
/** On the server, the id of the invocation method. */
|
||||||
protected transient String _invId;
|
protected transient String _invId;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user