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

vinoth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hudi.git


The following commit(s) were added to refs/heads/master by this push:
     new f324057  [MINOR] Unify Lists import (#1103)
f324057 is described below

commit f324057b6e27075833673b09b5c92d9c53ed2b58
Author: lamber-ken <[email protected]>
AuthorDate: Fri Dec 13 13:42:18 2019 +0800

    [MINOR] Unify Lists import (#1103)
---
 .../org/apache/hudi/hive/SlashEncodedDayPartitionValueExtractor.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/hudi-hive/src/main/java/org/apache/hudi/hive/SlashEncodedDayPartitionValueExtractor.java
 
b/hudi-hive/src/main/java/org/apache/hudi/hive/SlashEncodedDayPartitionValueExtractor.java
index 2ecad28..4dba0fe 100644
--- 
a/hudi-hive/src/main/java/org/apache/hudi/hive/SlashEncodedDayPartitionValueExtractor.java
+++ 
b/hudi-hive/src/main/java/org/apache/hudi/hive/SlashEncodedDayPartitionValueExtractor.java
@@ -18,11 +18,11 @@
 
 package org.apache.hudi.hive;
 
-import com.beust.jcommander.internal.Lists;
 import org.joda.time.DateTime;
 import org.joda.time.format.DateTimeFormat;
 import org.joda.time.format.DateTimeFormatter;
 
+import java.util.Collections;
 import java.util.List;
 
 /**
@@ -58,6 +58,7 @@ public class SlashEncodedDayPartitionValueExtractor 
implements PartitionValueExt
     int mm = Integer.parseInt(splits[1].contains("=") ? 
splits[1].split("=")[1] : splits[1]);
     int dd = Integer.parseInt(splits[2].contains("=") ? 
splits[2].split("=")[1] : splits[2]);
     DateTime dateTime = new DateTime(year, mm, dd, 0, 0);
-    return Lists.newArrayList(getDtfOut().print(dateTime));
+
+    return Collections.singletonList(getDtfOut().print(dateTime));
   }
 }

Reply via email to