Skip to content

Commit ee872a3

Browse files
committed
Another signature api fix
1 parent 46dbad5 commit ee872a3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>software.coley</groupId>
88
<artifactId>lljzip</artifactId>
9-
<version>1.3.1</version>
9+
<version>1.3.2</version>
1010

1111
<name>LL Java ZIP</name>
1212
<description>Lower level ZIP support for Java</description>

src/main/java/software/coley/llzip/util/BufferData.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,15 @@ public byte get(long position) {
3838
}
3939

4040
@Override
41+
@SuppressWarnings("all")
4142
public void get(long position, byte[] b, int off, int len) {
4243
ensureOpen();
4344
// Left intentionally as unchained calls due to API differences across Java versions
4445
// and how the compiler changes output.
4546
ByteBuffer buffer = this.buffer;
4647
buffer.slice();
4748
buffer.order(buffer.order());
48-
buffer.position(validate(position));
49+
((Buffer) buffer).position(validate(position));
4950
buffer.get(b, off, len);
5051
}
5152

0 commit comments

Comments
 (0)