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 2024/06/28 20:35:29 UTC
(commons-compress) 06/08: Upgrade commons-io from 2.15.1 to 2.16.1 #513
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 a5d32d249aaf630dd257a9cdcdf8159360a132ec
Author: Mike Drob <md...@apache.org>
AuthorDate: Fri Jun 28 16:33:46 2024 -0400
Upgrade commons-io from 2.15.1 to 2.16.1 #513
- Migrate to non-deprecated code
- Thanks to madrob Mike Drob and PR 513
- https://github.com/apache/commons-compress/pull/513/files
---
src/main/java/org/apache/commons/compress/harmony/pack200/Codec.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/compress/harmony/pack200/Codec.java b/src/main/java/org/apache/commons/compress/harmony/pack200/Codec.java
index af4d9c9a3..0dd5563a3 100644
--- a/src/main/java/org/apache/commons/compress/harmony/pack200/Codec.java
+++ b/src/main/java/org/apache/commons/compress/harmony/pack200/Codec.java
@@ -85,7 +85,7 @@ public abstract class Codec {
if (in instanceof BoundedInputStream) {
final BoundedInputStream bin = (BoundedInputStream) in;
final long count = bin.getCount();
- final long maxLength = bin.getMaxLength();
+ final long maxLength = bin.getMaxCount();
if (maxLength > -1) {
final long remaining = maxLength - count;
final String format = "Can't read beyond end of stream (n = %,d, count = %,d, maxLength = %,d, remaining = %,d)";