mirror of
https://github.com/xerial/snappy-java.git
synced 2025-07-22 21:44:31 +02:00
Use the Java 1.5 compatible constructor in IOException
This commit is contained in:
parent
10c561e310
commit
20f265ba90
@ -107,7 +107,7 @@ public class SnappyInputStream extends InputStream
|
||||
this.uncompressedLimit = uncompressedLength;
|
||||
}
|
||||
catch (SnappyException e) {
|
||||
throw new IOException(e);
|
||||
throw new IOException(e.getMessage());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ public class SnappyOutputStream extends OutputStream
|
||||
cursor = 0;
|
||||
}
|
||||
catch (SnappyException e) {
|
||||
throw new IOException(e);
|
||||
throw new IOException(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user