Skip to content

Commit

Permalink
Another signature api fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Col-E committed Jun 8, 2023
1 parent 46dbad5 commit ee872a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>software.coley</groupId>
<artifactId>lljzip</artifactId>
<version>1.3.1</version>
<version>1.3.2</version>

<name>LL Java ZIP</name>
<description>Lower level ZIP support for Java</description>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/software/coley/llzip/util/BufferData.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ public byte get(long position) {
}

@Override
@SuppressWarnings("all")
public void get(long position, byte[] b, int off, int len) {
ensureOpen();
// Left intentionally as unchained calls due to API differences across Java versions
// and how the compiler changes output.
ByteBuffer buffer = this.buffer;
buffer.slice();
buffer.order(buffer.order());
buffer.position(validate(position));
((Buffer) buffer).position(validate(position));
buffer.get(b, off, len);
}

Expand Down

0 comments on commit ee872a3

Please sign in to comment.