rdblue commented on a change in pull request #153: [Baseline] Apply baseline
linting to iceberg-core
URL: https://github.com/apache/incubator-iceberg/pull/153#discussion_r280601837
##########
File path: core/src/main/java/org/apache/iceberg/RemoveSnapshots.java
##########
@@ -135,15 +134,15 @@ public void commit() {
TableMetadata current = ops.refresh();
Set<Long> currentIds = Sets.newHashSet();
Set<ManifestFile> currentManifests = Sets.newHashSet();
- for (Snapshot snapshot : current.snapshots()) {
+ current.snapshots().forEach(snapshot -> {
currentIds.add(snapshot.snapshotId());
currentManifests.addAll(snapshot.manifests());
- }
+ });
Set<String> manifestListsToDelete = Sets.newHashSet();
Set<ManifestFile> allManifests = Sets.newHashSet(currentManifests);
Set<String> manifestsToDelete = Sets.newHashSet();
- for (Snapshot snapshot : base.snapshots()) {
+ base.snapshots().forEach(snapshot -> {
Review comment:
Same here.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]