You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/12/08 16:15:35 UTC
[commons-compress] 04/38: Use final parameter
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git
commit 3fd944d5790080c66ed5f9a054f5cbd9d1dcd2a5
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Dec 8 11:02:49 2022 -0500
Use final parameter
---
.../commons/compress/utils/BoundedSeekableByteChannelInputStream.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/compress/utils/BoundedSeekableByteChannelInputStream.java b/src/main/java/org/apache/commons/compress/utils/BoundedSeekableByteChannelInputStream.java
index 75d352e8..12896e11 100644
--- a/src/main/java/org/apache/commons/compress/utils/BoundedSeekableByteChannelInputStream.java
+++ b/src/main/java/org/apache/commons/compress/utils/BoundedSeekableByteChannelInputStream.java
@@ -45,7 +45,7 @@ public class BoundedSeekableByteChannelInputStream extends BoundedArchiveInputSt
}
@Override
- protected int read(long pos, ByteBuffer buf) throws IOException {
+ protected int read(final long pos, final ByteBuffer buf) throws IOException {
int read;
synchronized (channel) {
channel.position(pos);