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:
Mike Thomas
2010-11-23 01:02:23 +00:00
parent 11d2800943
commit b26d2268ca
@@ -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. */
protected transient String _invId;
}