Permalink
Browse files

Do not throw IOException from encode.

  • Loading branch information...
1 parent faa7dc7 commit 8942921a7a499d0d3d200fc1f345fbdcb25529be @ijuma ijuma committed Dec 5, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/java/voldemort/store/compress/lzf/LZFEncoder.java
@@ -14,7 +14,6 @@
package voldemort.store.compress.lzf;
-import java.io.IOException;
/**
* Encoder that handles splitting of input into chunks to encode, calls
@@ -38,7 +37,7 @@ private LZFEncoder() {}
* structure (compatible with lzf command line utility). Result consists of
* a sequence of chunks.
*/
- public static byte[] encode(byte[] data) throws IOException {
+ public static byte[] encode(byte[] data) {
int left = data.length;
ChunkEncoder enc = new ChunkEncoder(left);
int chunkLen = Math.min(LZFChunk.MAX_CHUNK_LEN, left);

0 comments on commit 8942921

Please sign in to comment.