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 2025/02/22 19:14:11 UTC

(commons-imaging) 03/05: Use forEach()

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 d8954c40c23d23e131d6e665acfd4cb48d245f0b
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sat Feb 22 10:54:49 2025 -0500

    Use forEach()
---
 .../java/org/apache/commons/imaging/formats/tiff/TiffDirectory.java   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/imaging/formats/tiff/TiffDirectory.java b/src/main/java/org/apache/commons/imaging/formats/tiff/TiffDirectory.java
index cd9f5595..a47ebea4 100644
--- a/src/main/java/org/apache/commons/imaging/formats/tiff/TiffDirectory.java
+++ b/src/main/java/org/apache/commons/imaging/formats/tiff/TiffDirectory.java
@@ -127,9 +127,7 @@ public class TiffDirectory extends AbstractTiffElement implements Iterable<TiffF
     }
 
     public void dump() {
-        for (final TiffField entry : entries) {
-            entry.dump();
-        }
+        entries.forEach(TiffField::dump);
     }
 
     public TiffField findField(final TagInfo tag) throws ImagingException {