Skip to content

Commit

Permalink
Revert "Upgrade to Airbase 163"
Browse files Browse the repository at this point in the history
This reverts commit 200a028.
  • Loading branch information
dain committed Aug 17, 2024
1 parent 0d6da65 commit 8d24b66
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.airlift</groupId>
<artifactId>airbase</artifactId>
<version>163</version>
<version>112</version>
</parent>

<groupId>io.airlift</groupId>
Expand All @@ -32,9 +32,9 @@
<scm>
<connection>scm:git:git://github.com/airlift/aircompressor.git</connection>
<developerConnection>scm:git:[email protected]:airlift/aircompressor.git</developerConnection>
<tag>HEAD</tag>
<url>https://github.com/airlift/aircompressor/tree/master</url>
</scm>
<tag>HEAD</tag>
</scm>

<distributionManagement>
<repository>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private static class GZIPOutputStreamWrapper
super(output, bufferSize);
}

public void end()
public void end() throws IOException
{
// free the memory as early as possible
def.end();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,10 @@ public static final class FrameMetaData
final int length;
final FrameAction frameAction;

/**
* @param frameAction
* @param length
*/
public FrameMetaData(FrameAction frameAction, int length)
{
this.frameAction = frameAction;
Expand Down
12 changes: 6 additions & 6 deletions src/test/java/io/airlift/compress/zstd/TestUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ public class TestUtil
public static Object[][] test24bitIntegers()
{
return new Object[][] {
{new byte[] {1, 0, 0, 0}, 0, 1},
{new byte[] {12, -83, 0, 0}, 0, 44300},
{new byte[] {0, 0, -128}, 0, 8388608},
{new byte[] {(byte) 0xFF, (byte) 0xFF, (byte) 0xFF}, 0, 16777215},
{new byte[] {63, 25, 72, 0}, 0, 4725055},
{new byte[] {0, 0, 0, 0, 0, 0, 1, 0, 0}, 6, 1}
{new byte[]{1, 0, 0, 0}, 0, 1},
{new byte[]{12, -83, 0, 0}, 0, 44300},
{new byte[]{0, 0, -128}, 0, 8388608},
{new byte[]{(byte) 0xFF, (byte) 0xFF, (byte) 0xFF}, 0, 16777215},
{new byte[]{63, 25, 72, 0}, 0, 4725055},
{new byte[]{0, 0, 0, 0, 0, 0, 1, 0, 0}, 6, 1}
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/airlift/compress/zstd/TestZstd.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public void testVerifyMagicInAllFrames()
@Test
public void testDecompressIsMissingData()
{
byte[] input = new byte[] {40, -75, 47, -3, 32, 0, 1, 0};
byte[] input = new byte[]{40, -75, 47, -3, 32, 0, 1, 0};
byte[] output = new byte[1024];
assertThatThrownBy(() -> getDecompressor().decompress(input, 0, input.length, output, 0, output.length))
.matches(e -> e instanceof MalformedInputException || e instanceof UncheckedIOException)
Expand Down

0 comments on commit 8d24b66

Please sign in to comment.