You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by bl...@apache.org on 2020/12/21 18:17:15 UTC

[iceberg] branch master updated: Parquet: Remove unnecessary Encoding parameter (#1969)

This is an automated email from the ASF dual-hosted git repository.

blue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/master by this push:
     new 4a64f72  Parquet: Remove unnecessary Encoding parameter (#1969)
4a64f72 is described below

commit 4a64f7200f5a5c00a6853b5e5b0bca03adaa0323
Author: Harold Miao <mi...@miaohong.org>
AuthorDate: Tue Dec 22 02:17:07 2020 +0800

    Parquet: Remove unnecessary Encoding parameter (#1969)
    
    Explicit type argument Encoding can be replaced with <>
---
 parquet/src/main/java/org/apache/iceberg/parquet/ParquetUtil.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/parquet/src/main/java/org/apache/iceberg/parquet/ParquetUtil.java b/parquet/src/main/java/org/apache/iceberg/parquet/ParquetUtil.java
index 3337d2f..fb587b1 100644
--- a/parquet/src/main/java/org/apache/iceberg/parquet/ParquetUtil.java
+++ b/parquet/src/main/java/org/apache/iceberg/parquet/ParquetUtil.java
@@ -277,7 +277,7 @@ public class ParquetUtil {
     }
 
     // without EncodingStats, fall back to testing the encoding list
-    Set<Encoding> encodings = new HashSet<Encoding>(meta.getEncodings());
+    Set<Encoding> encodings = new HashSet<>(meta.getEncodings());
     if (encodings.remove(Encoding.PLAIN_DICTIONARY)) {
       // if remove returned true, PLAIN_DICTIONARY was present, which means at
       // least one page was dictionary encoded and 1.0 encodings are used