summaryrefslogtreecommitdiffstats
path: root/vespajlib
diff options
context:
space:
mode:
authorjonmv <venstad@gmail.com>2022-06-14 13:51:57 +0200
committerjonmv <venstad@gmail.com>2022-06-14 13:51:57 +0200
commit4dfe98dad3aab5c3d77605b67bc758be770bd93e (patch)
treeae1cab80cd95b785bc6222a5e83bfe103d20bc80 /vespajlib
parente0e3ff465fcec5bb6a7253da2cd6df82f9701066 (diff)
Add some comments, cleanup
Diffstat (limited to 'vespajlib')
-rw-r--r--vespajlib/src/main/java/com/yahoo/compress/ZstdCompressor.java3
-rw-r--r--vespajlib/src/main/java/com/yahoo/compress/ZstdOutputStream.java1
2 files changed, 2 insertions, 2 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/compress/ZstdCompressor.java b/vespajlib/src/main/java/com/yahoo/compress/ZstdCompressor.java
index 004c1d2a017..29a58dbde47 100644
--- a/vespajlib/src/main/java/com/yahoo/compress/ZstdCompressor.java
+++ b/vespajlib/src/main/java/com/yahoo/compress/ZstdCompressor.java
@@ -28,7 +28,7 @@ public class ZstdCompressor {
/**
* Note:
* Implementation assumes single frame (since {@link #getDecompressedLength(byte[], int, int)} only includes the first frame)
- * The {@link #decompress(byte[], int, int, byte[], int, int)} overload will try to decompress all frame, causing the output buffer to overflow.
+ * The {@link #decompress(byte[], int, int, byte[], int, int)} overload will try to decompress all frames, causing the output buffer to overflow.
*/
public byte[] decompress(byte[] input, int inputOffset, int inputLength) {
int decompressedLength = getDecompressedLength(input, inputOffset, inputLength);
@@ -48,4 +48,5 @@ public class ZstdCompressor {
public static int getDecompressedLength(byte[] input, int inputOffset, int inputLength) {
return (int) io.airlift.compress.zstd.ZstdDecompressor.getDecompressedSize(input, inputOffset, inputLength);
}
+
}
diff --git a/vespajlib/src/main/java/com/yahoo/compress/ZstdOutputStream.java b/vespajlib/src/main/java/com/yahoo/compress/ZstdOutputStream.java
index f439ee03ea6..2952195b224 100644
--- a/vespajlib/src/main/java/com/yahoo/compress/ZstdOutputStream.java
+++ b/vespajlib/src/main/java/com/yahoo/compress/ZstdOutputStream.java
@@ -38,7 +38,6 @@ public class ZstdOutputStream extends OutputStream {
@Override
public void write(byte[] b) throws IOException {
- throwIfClosed();
write(b, 0, b.length);
}