You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by pe...@apache.org on 2022/02/15 02:24:18 UTC

[incubator-linkis] branch dev-1.1.0-datasource updated: [CodeStyle] fix typo (#1457)

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

peacewong pushed a commit to branch dev-1.1.0-datasource
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git


The following commit(s) were added to refs/heads/dev-1.1.0-datasource by this push:
     new 85a3817  [CodeStyle] fix typo (#1457)
85a3817 is described below

commit 85a3817b283c3c9897483fe28f09cdd17a1e22b0
Author: legendtkl <ta...@gmail.com>
AuthorDate: Tue Feb 15 10:24:15 2022 +0800

    [CodeStyle] fix typo (#1457)
---
 .../apache/linkis/entrance/job/EntranceExecuteRequest.java   | 12 ++++++------
 .../org/apache/linkis/entrance/job/EntranceExecutionJob.java |  2 +-
 .../linkis/entrance/execute/DefaultEntranceExecutor.scala    |  4 ++--
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/linkis-computation-governance/linkis-entrance/src/main/java/org/apache/linkis/entrance/job/EntranceExecuteRequest.java b/linkis-computation-governance/linkis-entrance/src/main/java/org/apache/linkis/entrance/job/EntranceExecuteRequest.java
index 37c7dbc..d1db38d 100644
--- a/linkis-computation-governance/linkis-entrance/src/main/java/org/apache/linkis/entrance/job/EntranceExecuteRequest.java
+++ b/linkis-computation-governance/linkis-entrance/src/main/java/org/apache/linkis/entrance/job/EntranceExecuteRequest.java
@@ -47,7 +47,7 @@ public class EntranceExecuteRequest
     }
 
     private SubJobInfo subJobInfo;
-    private List<Label<?>> lables;
+    private List<Label<?>> labels;
 
     public SubJobInfo getSubJobInfo() {
         return subJobInfo;
@@ -57,12 +57,12 @@ public class EntranceExecuteRequest
         this.subJobInfo = subJobInfo;
     }
 
-    public List<Label<?>> getLables() {
-        return lables;
+    public List<Label<?>> getLabels() {
+        return labels;
     }
 
-    public void setLables(List<Label<?>> lables) {
-        this.lables = lables;
+    public void setLabels(List<Label<?>> labels) {
+        this.labels = labels;
     }
 
     public EntranceExecutionJob getJob() {
@@ -114,7 +114,7 @@ public class EntranceExecuteRequest
 
     @Override
     public List<Label<?>> labels() {
-        if (null == lables || lables.isEmpty()) {
+        if (null == labels || labels.isEmpty()) {
             if (null != job.getJobRequest()) {
                 return job.getJobRequest().getLabels();
             } else {
diff --git a/linkis-computation-governance/linkis-entrance/src/main/java/org/apache/linkis/entrance/job/EntranceExecutionJob.java b/linkis-computation-governance/linkis-entrance/src/main/java/org/apache/linkis/entrance/job/EntranceExecutionJob.java
index eb2892b..767124b 100644
--- a/linkis-computation-governance/linkis-entrance/src/main/java/org/apache/linkis/entrance/job/EntranceExecutionJob.java
+++ b/linkis-computation-governance/linkis-entrance/src/main/java/org/apache/linkis/entrance/job/EntranceExecutionJob.java
@@ -285,7 +285,7 @@ public class EntranceExecutionJob extends EntranceJob implements LogHandler {
         List<Label<?>> labels = new ArrayList<Label<?>>();
         labels.addAll(getJobRequest().getLabels());
         labels.add(bindEngineLabel);
-        executeRequest.setLables(labels);
+        executeRequest.setLabels(labels);
         if (isCompleted) {
             return null;
         } else {
diff --git a/linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/execute/DefaultEntranceExecutor.scala b/linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/execute/DefaultEntranceExecutor.scala
index cbea921..0f0323e 100644
--- a/linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/execute/DefaultEntranceExecutor.scala
+++ b/linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/execute/DefaultEntranceExecutor.scala
@@ -178,7 +178,7 @@ class DefaultEntranceExecutor(id: Long, mark: MarkReq, entranceExecutorManager:
     jobReqBuilder.setId(subJobId)
     jobReqBuilder.setSubmitUser(entranceExecuteRequest.submitUser())
     jobReqBuilder.setExecuteUser(entranceExecuteRequest.executeUser())
-    val codeTypeLabel: Label[_] = LabelUtil.getCodeTypeLabel(entranceExecuteRequest.getLables)
+    val codeTypeLabel: Label[_] = LabelUtil.getCodeTypeLabel(entranceExecuteRequest.getLabels)
     if (null == codeTypeLabel) {
       throw new EntranceErrorException(EntranceErrorCode.EXECUTE_REQUEST_INVALID.getErrCode, s"code Type Label is needed")
     }
@@ -186,7 +186,7 @@ class DefaultEntranceExecutor(id: Long, mark: MarkReq, entranceExecutorManager:
     codes.add(entranceExecuteRequest.code())
     val codeLogicalUnit = new CodeLogicalUnit(codes, codeTypeLabel.asInstanceOf[CodeLanguageLabel])
     jobReqBuilder.setCodeLogicalUnit(codeLogicalUnit)
-    jobReqBuilder.setLabels(entranceExecuteRequest.getLables)
+    jobReqBuilder.setLabels(entranceExecuteRequest.getLabels)
     jobReqBuilder.setExecuteUser(entranceExecuteRequest.executeUser())
     jobReqBuilder.setParams(entranceExecuteRequest.properties().asInstanceOf[util.Map[String, Any]])
     jobReqBuilder.build()

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org