You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by ca...@apache.org on 2022/09/07 16:05:09 UTC
[incubator-linkis] branch dev-1.3.1 updated: [linkis-code-orchestrator] Modification of scala file floating red (#3190)
This is an automated email from the ASF dual-hosted git repository.
casion pushed a commit to branch dev-1.3.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git
The following commit(s) were added to refs/heads/dev-1.3.1 by this push:
new 98e94deaa [linkis-code-orchestrator] Modification of scala file floating red (#3190)
98e94deaa is described below
commit 98e94deaad989b13929add87630ac53d4312619b
Author: 成彬彬 <10...@users.noreply.github.com>
AuthorDate: Thu Sep 8 00:05:04 2022 +0800
[linkis-code-orchestrator] Modification of scala file floating red (#3190)
---
.../org/apache/linkis/orchestrator/code/plans/ast/CodeJob.scala | 2 +-
.../apache/linkis/orchestrator/code/plans/logical/CacheTask.scala | 7 ++++---
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/linkis-orchestrator/linkis-code-orchestrator/src/main/scala/org/apache/linkis/orchestrator/code/plans/ast/CodeJob.scala b/linkis-orchestrator/linkis-code-orchestrator/src/main/scala/org/apache/linkis/orchestrator/code/plans/ast/CodeJob.scala
index 82ed63b36..939af5f34 100644
--- a/linkis-orchestrator/linkis-code-orchestrator/src/main/scala/org/apache/linkis/orchestrator/code/plans/ast/CodeJob.scala
+++ b/linkis-orchestrator/linkis-code-orchestrator/src/main/scala/org/apache/linkis/orchestrator/code/plans/ast/CodeJob.scala
@@ -112,5 +112,5 @@ class CodeJob(private var parents: Array[Job], private var children: Array[Job])
job
}
- override def toString = s"CodeJob($name, $submitUser, $codeLogicalUnit)"
+ override def toString: String = s"CodeJob($name, $submitUser, $codeLogicalUnit)"
}
diff --git a/linkis-orchestrator/linkis-code-orchestrator/src/main/scala/org/apache/linkis/orchestrator/code/plans/logical/CacheTask.scala b/linkis-orchestrator/linkis-code-orchestrator/src/main/scala/org/apache/linkis/orchestrator/code/plans/logical/CacheTask.scala
index 5dfa533be..30f9ad27d 100644
--- a/linkis-orchestrator/linkis-code-orchestrator/src/main/scala/org/apache/linkis/orchestrator/code/plans/logical/CacheTask.scala
+++ b/linkis-orchestrator/linkis-code-orchestrator/src/main/scala/org/apache/linkis/orchestrator/code/plans/logical/CacheTask.scala
@@ -48,11 +48,11 @@ class CacheTask(private var parents: Array[Task], private var children: Array[Ta
cacheTask
}
- def setRealTask(realTask: CodeLogicalUnitTask) = {
+ def setRealTask(realTask: CodeLogicalUnitTask): Unit = {
this.realTask = realTask
}
- def getRealTask() = realTask
+ def getRealTask(): CodeLogicalUnitTask = realTask
override def getId: String = {
if (null == id) synchronized {
@@ -65,7 +65,7 @@ class CacheTask(private var parents: Array[Task], private var children: Array[Ta
override def theSame(other: Task): Boolean = if (super.equals(other)) true
else if (other == null) false
- else
+ else {
other match {
case jobTask: CacheTask =>
jobTask.getParents.sameElements(parents) && jobTask.getChildren.sameElements(
@@ -73,5 +73,6 @@ class CacheTask(private var parents: Array[Task], private var children: Array[Ta
) && jobTask.getTaskDesc == getTaskDesc
case _ => false
}
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org