Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxj959 committed Aug 6, 2024
1 parent c4ccbda commit a3e4022
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ public void dealOutParam4Procedure(Object result, String pop) {
return;
}
properties.get(pop).setValue(String.valueOf(result));
if(!varPool.isEmpty()){
for(Property info :varPool){
if(pop.equals(info.getProp())){
if (!varPool.isEmpty()) {
for (Property info : varPool) {
if (pop.equals(info.getProp())) {
varPool.remove(info);
break;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.dolphinscheduler.plugin.task.procedure;

import org.apache.dolphinscheduler.common.utils.JSONUtils;
import org.apache.dolphinscheduler.plugin.task.api.enums.DataType;
import org.apache.dolphinscheduler.plugin.task.api.enums.Direct;
import org.apache.dolphinscheduler.plugin.task.api.model.Property;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

import java.util.ArrayList;
Expand All @@ -30,6 +46,6 @@ public void buildPythonExecuteCommand() throws Exception {
list.add(property);
list.add(property2);
procedureParameters.setVarPool(JSONUtils.toJsonString(list));
procedureParameters.dealOutParam4Procedure("path/testNew","test");
procedureParameters.dealOutParam4Procedure("path/testNew", "test");
}
}

0 comments on commit a3e4022

Please sign in to comment.