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 8f5e7ad  [HUDI-205] Let checkstyle ban Java and Guava Optional instead 
of using Option provided by Hudi (#834)
8f5e7ad is described below

commit 8f5e7ad5d96302905c09cfae9d28bfe684782fc7
Author: vinoyang <[email protected]>
AuthorDate: Wed Aug 14 08:13:52 2019 +0800

    [HUDI-205] Let checkstyle ban Java and Guava Optional instead of using 
Option provided by Hudi (#834)
---
 style/checkstyle-suppressions.xml | 1 +
 style/checkstyle.xml              | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/style/checkstyle-suppressions.xml 
b/style/checkstyle-suppressions.xml
index 02a7a4a..9d2e326 100644
--- a/style/checkstyle-suppressions.xml
+++ b/style/checkstyle-suppressions.xml
@@ -9,4 +9,5 @@
   <suppress checks="indentation" files="HoodieLogFileCommand.java" 
lines="1-9999"/>
   <!-- Member Names expected to start with "_"  -->
   <suppress checks="naming" files="TestRecord.java" lines="1-9999"/>
+  <suppress checks="IllegalImport" files="Option.java" />
 </suppressions>
diff --git a/style/checkstyle.xml b/style/checkstyle.xml
index c0667b2..40ec255 100644
--- a/style/checkstyle.xml
+++ b/style/checkstyle.xml
@@ -242,5 +242,8 @@
             <property name="exceptionVariableName" value="expected"/>
         </module>
         <module name="CommentsIndentation"/>
+        <module name="IllegalImport">
+            <property name="illegalClasses" value="java.util.Optional, 
com.google.common.base.Optional" />
+        </module>
     </module>
 </module>

Reply via email to