You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by he...@apache.org on 2022/11/02 03:14:13 UTC
[inlong] branch master updated (5ce01771e -> 70bf3e0aa)
This is an automated email from the ASF dual-hosted git repository.
healchow pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git
omit 5ce01771e [Manager][INLONG-6361] Fix the deserialization exception with Jackson's version below 2.13 (#6362)
new 70bf3e0aa [INLONG-6361][Manager] Fix the deserialization exception with Jackson's version below 2.13 (#6362)
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (5ce01771e)
\
N -- N -- N refs/heads/master (70bf3e0aa)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
[inlong] 01/01: [INLONG-6361][Manager] Fix the deserialization exception with Jackson's version below 2.13 (#6362)
Posted by he...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
healchow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git
commit 70bf3e0aa9332d4a6c3d46535f94ae84cc1af6b9
Author: woofyzhao <49...@qq.com>
AuthorDate: Wed Nov 2 11:09:26 2022 +0800
[INLONG-6361][Manager] Fix the deserialization exception with Jackson's version below 2.13 (#6362)
---
.../org/apache/inlong/manager/common/enums/SortStatus.java | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/enums/SortStatus.java b/inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/enums/SortStatus.java
index 183b2d4a9..c4c66558d 100644
--- a/inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/enums/SortStatus.java
+++ b/inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/enums/SortStatus.java
@@ -17,6 +17,7 @@
package org.apache.inlong.manager.common.enums;
+import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
/**
@@ -53,4 +54,14 @@ public enum SortStatus {
return description;
}
+ @JsonCreator
+ public static SortStatus forCode(int code) {
+ for (SortStatus status : values()) {
+ if (status.getCode() == code) {
+ return status;
+ }
+ }
+ throw new IllegalStateException(String.format("Illegal code=%s for SortStatus", code));
+ }
+
}