Skip to content

Commit

Permalink
Use forEach()
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Feb 22, 2025
1 parent bbea07e commit ca168e5
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -617,9 +617,7 @@ public ImageMetadata getMetadata(final ByteSource byteSource, TiffImagingParamet

final List<TiffField> entries = dir.getDirectoryEntries();

for (final TiffField entry : entries) {
metadataDirectory.add(entry);
}
entries.forEach(metadataDirectory::add);

result.add(metadataDirectory);
}
Expand Down

0 comments on commit ca168e5

Please sign in to comment.