Skip to content

Commit

Permalink
update java checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
xuefengze committed Jan 12, 2024
1 parent cdb0c91 commit 90db6af
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 14 additions & 0 deletions java/tools/maven/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,24 @@ This file is based on the checkstyle file of Apache Beam.
<property name="illegalPkgs" value="io.netty"/>
<message key="import.illegal" value="{0}; Use flink-shaded-netty instead."/>
</module>
<!--
<module name="IllegalImport">
<property name="illegalPkgs" value="com.google.common"/>
<message key="import.illegal" value="{0}; Use flink-shaded-guava instead."/>
</module>
-->
<module name="IllegalImport">
<property name="illegalClasses" value="java.util.Date, java.sql.Date, java.sql.Timestamp, java.sql.Time"/>
<message key="import.illegal" value="{0}; Use java.time.* instead."/>
</module>
<module name="IllegalImport">
<property name="illegalClasses" value="java.text.DateFormat, java.text.SimpleDateFormat"/>
<message key="import.illegal" value="{0}; Use java.time.* instead."/>
</module>
<module name="IllegalImport">
<property name="illegalClasses" value="java.util.Calendar, java.util.GregorianCalendar"/>
<message key="import.illegal" value="{0}; Use java.time.* instead."/>
</module>

<module name="RedundantModifier">
<!-- Checks for redundant modifiers on various symbol definitions.
Expand Down
3 changes: 1 addition & 2 deletions java/tools/maven/suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ under the License.

<suppress files=".*" checks="javadoc"/>
<suppress files=".*" checks="AvoidStarImport"/>
<suppress files=".*" checks="IllegalImport"/>
</suppressions>
</suppressions>

0 comments on commit 90db6af

Please sign in to comment.