Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
import java.util.Collections;
import java.util.List;

import static org.apache.flink.shaded.guava31.com.google.common.base.Preconditions.checkArgument;
import static org.apache.flink.shaded.guava31.com.google.common.base.Preconditions.checkNotNull;
import static org.apache.paimon.utils.Preconditions.checkArgument;
import static org.apache.paimon.utils.Preconditions.checkNotNull;

/**
* {@link TableSortInfo} is used to indicate the configuration details for table data sorting. This
Expand Down
7 changes: 7 additions & 0 deletions tools/maven/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,13 @@ This file is based on the checkstyle file of Apache Beam.
<property name="illegalPattern" value="true"/>
<property name="message" value="Use com.fasterxml.jackson instead of jettison."/>
</module>
<!-- forbid the use of flink.shaded.guava31.com.google.common -->
<module name="Regexp">
<property name="format" value="import static org\.apache\.flink\.shaded\.guava31\.com\.google\.common\.base\.Preconditions"/>
<property name="illegalPattern" value="true"/>
<property name="message"
value="Use Paimon's Preconditions instead of Guava's Preconditions"/>
</module>

<!-- Enforce Java-style array declarations -->
<module name="ArrayTypeStyle"/>
Expand Down