Permalink
Browse files

snappy-java api change

  • Loading branch information...
1 parent a024b42 commit fa8d5a4559418aff059a29078c6724dae3b69795 @tjake committed Aug 17, 2011
Showing with 3 additions and 16 deletions.
  1. +3 −16 src/lucandra/CassandraUtils.java
@@ -778,29 +778,16 @@ public static int readVInt(ByteBuffer buf)
if(!useCompression)
return input;
- try
- {
- return Snappy.compress(input);
- }
- catch (SnappyException e)
- {
- throw new IOException(e);
- }
+
+ return Snappy.compress(input);
}
public static byte[] decompress(byte[] input) throws IOException
{
if(!useCompression)
return input;
- try
- {
- return Snappy.uncompress(input);
- }
- catch (SnappyException e)
- {
- throw new IOException(e);
- }
+ return Snappy.uncompress(input);
}
//Java lets you do EVIL things

0 comments on commit fa8d5a4

Please sign in to comment.