Skip to content

Commit

Permalink
Minor improvements and prepare for v1.7.1 release (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperxpro authored Apr 3, 2022
1 parent a5fe726 commit f10fc2d
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ For maven, the natives will
<dependency>
<groupId>com.aayushatharva.brotli4j</groupId>
<artifactId>brotli4j</artifactId>
<version>1.7.0</version>
<version>1.7.1</version>
</dependency>
```

Expand Down
10 changes: 5 additions & 5 deletions brotli4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<artifactId>brotli4j-parent</artifactId>
<groupId>com.aayushatharva.brotli4j</groupId>
<version>1.7.0</version>
<version>1.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -42,7 +42,7 @@
<dependency>
<groupId>com.aayushatharva.brotli4j</groupId>
<artifactId>native-linux-x86_64</artifactId>
<version>1.7.0</version>
<version>1.7.1</version>
</dependency>
</dependencies>
</profile>
Expand All @@ -59,7 +59,7 @@
<dependency>
<groupId>com.aayushatharva.brotli4j</groupId>
<artifactId>native-linux-aarch64</artifactId>
<version>1.7.0</version>
<version>1.7.1</version>
</dependency>
</dependencies>
</profile>
Expand All @@ -76,7 +76,7 @@
<dependency>
<groupId>com.aayushatharva.brotli4j</groupId>
<artifactId>native-windows-x86_64</artifactId>
<version>1.7.0</version>
<version>1.7.1</version>
</dependency>
</dependencies>
</profile>
Expand All @@ -93,7 +93,7 @@
<dependency>
<groupId>com.aayushatharva.brotli4j</groupId>
<artifactId>native-osx-x86_64</artifactId>
<version>1.7.0</version>
<version>1.7.1</version>
</dependency>
</dependencies>
</profile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ public class Brotli4jLoader {
}

System.load(tempFile.getAbsolutePath());

cause = null;
} catch (Throwable throwable) {
cause = throwable;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
package com.aayushatharva.brotli4j.common.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
Expand All @@ -26,5 +28,6 @@
* Google Brotli upstream repository.
*/
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.SOURCE)
public @interface Local {
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
package com.aayushatharva.brotli4j.common.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
Expand All @@ -26,5 +28,6 @@
* without any change in function and parameters.
*/
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.SOURCE)
public @interface Upstream {
}
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public int read() throws IOException {
throw new IOException("read after close");
}
int decoded;
// Iterate until at leat one byte is decoded, or EOF reached.
// Iterate until at least one byte is decoded, or EOF reached.
while (true) {
decoded = decoder.decode();
if (decoded != 0) {
Expand Down
2 changes: 1 addition & 1 deletion natives/linux-aarch64/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<artifactId>natives</artifactId>
<groupId>com.aayushatharva.brotli4j</groupId>
<version>1.7.0</version>
<version>1.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion natives/linux-x86_64/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<artifactId>natives</artifactId>
<groupId>com.aayushatharva.brotli4j</groupId>
<version>1.7.0</version>
<version>1.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion natives/osx-x86_64/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<artifactId>natives</artifactId>
<groupId>com.aayushatharva.brotli4j</groupId>
<version>1.7.0</version>
<version>1.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion natives/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.aayushatharva.brotli4j</groupId>
<artifactId>brotli4j-parent</artifactId>
<version>1.7.0</version>
<version>1.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion natives/windows-x86_64/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<artifactId>natives</artifactId>
<groupId>com.aayushatharva.brotli4j</groupId>
<version>1.7.0</version>
<version>1.7.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<groupId>com.aayushatharva.brotli4j</groupId>
<artifactId>brotli4j-parent</artifactId>
<packaging>pom</packaging>
<version>1.7.0</version>
<version>1.7.1</version>

<name>Brotli4j</name>
<description>Brotli4j provides Brotli compression and decompression for Java.</description>
Expand Down Expand Up @@ -82,6 +82,7 @@
<groupId>io.netty</groupId>
<artifactId>netty-buffer</artifactId>
<version>4.1.75.Final</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>

Expand Down

0 comments on commit f10fc2d

Please sign in to comment.