there's a more general exception in the throws list already
This commit is contained in:
parent
b858fab8d7
commit
dd567e059f
@ -46,8 +46,7 @@ class CompactObjectInputStream extends ObjectInputStream {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void readStreamHeader() throws IOException,
|
protected void readStreamHeader() throws IOException {
|
||||||
StreamCorruptedException {
|
|
||||||
int version = readByte() & 0xFF;
|
int version = readByte() & 0xFF;
|
||||||
if (version != STREAM_VERSION) {
|
if (version != STREAM_VERSION) {
|
||||||
throw new StreamCorruptedException(
|
throw new StreamCorruptedException(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user