HCOLL-167 simplified the exception throwing code

This commit is contained in:
Rob Austin
2014-10-22 13:06:13 +01:00
parent 0795300304
commit ac6f3dd778
2 changed files with 3 additions and 19 deletions
@@ -1588,12 +1588,7 @@ class StatelessServerConnector<K, V> {
}
private void writeException(RuntimeException e, Bytes out) {
long start = out.position();
out.skip(2);
out.writeObject(e);
long len = out.position() - (start + 2L);
out.writeUnsignedShort(start, (int) len);
}