From 8aa1d145c4fbbfd994bf042ccff57d9ff3f6081e Mon Sep 17 00:00:00 2001 From: Wencong Liu Date: Tue, 4 Jun 2024 21:12:49 +0800 Subject: [PATCH] [flink] Fix the illegal usage of flink.shaded.guava31 dependency in TableSortInfo --- .../java/org/apache/paimon/flink/sorter/TableSortInfo.java | 4 ++-- tools/maven/checkstyle.xml | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/sorter/TableSortInfo.java b/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/sorter/TableSortInfo.java index 16760bd35b11..9b359e232df5 100644 --- a/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/sorter/TableSortInfo.java +++ b/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/sorter/TableSortInfo.java @@ -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 diff --git a/tools/maven/checkstyle.xml b/tools/maven/checkstyle.xml index 9bf918f69c52..d5db52cb03df 100644 --- a/tools/maven/checkstyle.xml +++ b/tools/maven/checkstyle.xml @@ -182,6 +182,13 @@ This file is based on the checkstyle file of Apache Beam. + + + + + +