mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-167 simplified the exception throwing code
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user