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 2023/05/14 21:38:14 UTC
[commons-imaging] 07/10: Use IOUtils.consume()
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-imaging.git
commit ae803f566f2a8c99803285edb1aeb75843d03da5
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun May 14 17:30:24 2023 -0400
Use IOUtils.consume()
---
src/main/java/org/apache/commons/imaging/icc/IccProfileParser.java | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/apache/commons/imaging/icc/IccProfileParser.java b/src/main/java/org/apache/commons/imaging/icc/IccProfileParser.java
index 07bf6b50..68d3356d 100644
--- a/src/main/java/org/apache/commons/imaging/icc/IccProfileParser.java
+++ b/src/main/java/org/apache/commons/imaging/icc/IccProfileParser.java
@@ -276,10 +276,8 @@ public class IccProfileParser extends BinaryFileParser {
// tags .add(tag);
}
- {
- // read stream to end, filling cache.
- IOUtils.consume(is);
- }
+ // read stream to end, filling cache.
+ IOUtils.consume(is);
final byte[] data = cis.getCache();