Use the Java 1.5 compatible constructor in IOException

This commit is contained in:
Taro L. Saito 2011-04-04 10:17:14 +09:00
parent 10c561e310
commit 20f265ba90
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ public class SnappyInputStream extends InputStream
this.uncompressedLimit = uncompressedLength;
}
catch (SnappyException e) {
throw new IOException(e);
throw new IOException(e.getMessage());
}
}

View File

@ -122,7 +122,7 @@ public class SnappyOutputStream extends OutputStream
cursor = 0;
}
catch (SnappyException e) {
throw new IOException(e);
throw new IOException(e.getMessage());
}
}