there's a more general exception in the throws list already

This commit is contained in:
alepar 2011-11-22 15:51:14 +04:00
parent b858fab8d7
commit dd567e059f

View File

@ -46,8 +46,7 @@ class CompactObjectInputStream extends ObjectInputStream {
}
@Override
protected void readStreamHeader() throws IOException,
StreamCorruptedException {
protected void readStreamHeader() throws IOException {
int version = readByte() & 0xFF;
if (version != STREAM_VERSION) {
throw new StreamCorruptedException(