You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by go...@apache.org on 2023/01/30 07:22:27 UTC

[inlong] branch master updated: [INLONG-7280][Manager] rename checkXXX to expectXXX in Preconditions (addendum) (#7283)

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

gosonzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new 7b7c5a637 [INLONG-7280][Manager] rename checkXXX to expectXXX in Preconditions (addendum) (#7283)
7b7c5a637 is described below

commit 7b7c5a637d48a12a83bdcc1c68c94c0ebf3aaebc
Author: Goson Zhang <46...@qq.com>
AuthorDate: Mon Jan 30 15:22:20 2023 +0800

    [INLONG-7280][Manager] rename checkXXX to expectXXX in Preconditions (addendum) (#7283)
---
 .../apache/inlong/manager/service/core/impl/SortSourceServiceImpl.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/core/impl/SortSourceServiceImpl.java b/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/core/impl/SortSourceServiceImpl.java
index dd772c18c..cf699608f 100644
--- a/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/core/impl/SortSourceServiceImpl.java
+++ b/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/core/impl/SortSourceServiceImpl.java
@@ -293,7 +293,7 @@ public class SortSourceServiceImpl implements SortSourceService {
             String clusterName,
             List<SortSourceStreamSinkInfo> sinkList) {
 
-        Preconditions.checkNotNull(sortClusters.get(clusterName), "sort cluster should not be NULL");
+        Preconditions.expectNotNull(sortClusters.get(clusterName), "sort cluster should not be NULL");
         String sortClusterTag = sortClusters.get(clusterName).getClusterTags();
 
         // get group infos