You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by "JinyLeeChina (via GitHub)" <gi...@apache.org> on 2023/02/20 02:38:52 UTC
[GitHub] [dolphinscheduler] JinyLeeChina commented on a diff in pull request #13455: [Fix-12966] Failed to export and then import the project
JinyLeeChina commented on code in PR #13455:
URL: https://github.com/apache/dolphinscheduler/pull/13455#discussion_r1111403419
##########
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/task/switchtask/SwitchParameters.java:
##########
@@ -74,21 +76,18 @@ public void setDependTaskList(List<SwitchResultVo> dependTaskList) {
this.dependTaskList = dependTaskList;
}
- public List<String> getNextNode() {
+ public Long getNextNode() {
return nextNode;
}
public void setNextNode(Object nextNode) {
- if (nextNode instanceof String) {
- List<String> nextNodeList = new ArrayList<>();
- nextNodeList.add(String.valueOf(nextNode));
- this.nextNode = nextNodeList;
- } else if (nextNode instanceof Number) {
- List<String> nextNodeList = new ArrayList<>();
- nextNodeList.add(nextNode.toString());
- this.nextNode = nextNodeList;
+ if (nextNode instanceof Long) {
+ this.nextNode = (Long) nextNode;
} else {
- this.nextNode = (ArrayList) nextNode;
+ List<String> nextNodes = (ArrayList) nextNode;
Review Comment:
I think it is possible. Can you submit a new issue to describe it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org