aokolnychyi commented on a change in pull request #1064:
URL: https://github.com/apache/iceberg/pull/1064#discussion_r432586669



##########
File path: core/src/main/java/org/apache/iceberg/BaseManifestReader.java
##########
@@ -218,13 +219,12 @@ public ThisT caseSensitive(boolean isCaseSensitive) {
    * @return an Iterator of DataFile. Makes defensive copies of files before 
returning
    */
   @Override
-  @SuppressWarnings("unchecked")
-  public CloseableIterator<T> iterator() {
+  public CloseableIterator<F> iterator() {
     if (dropStats(rowFilter, columns)) {
-      return (CloseableIterator<T>) CloseableIterable.transform(liveEntries(), 
e -> e.file().copyWithoutStats())
+      return CloseableIterable.transform(liveEntries(), e -> 
e.file().copyWithoutStats())

Review comment:
       nit: I think this can be on a single line now (i.e. `iterator()`)




----------------------------------------------------------------
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to