From 571e1ed52ff56f6cc56f5ad7772faa216dee82f2 Mon Sep 17 00:00:00 2001 From: Sweidan Omar Date: Thu, 6 Jan 2022 11:36:55 +0000 Subject: [PATCH] git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube;C32652 --- .../user/jobengine/server/ast/JobTemplate.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/server/user.jobengine.osgi.server/src/user/jobengine/server/ast/JobTemplate.java b/server/user.jobengine.osgi.server/src/user/jobengine/server/ast/JobTemplate.java index 831f918e..90a63b33 100644 --- a/server/user.jobengine.osgi.server/src/user/jobengine/server/ast/JobTemplate.java +++ b/server/user.jobengine.osgi.server/src/user/jobengine/server/ast/JobTemplate.java @@ -6,7 +6,7 @@ import java.util.List; import java.util.Map; /** - * Gy�k�r oszt�ly. + * Gyökér osztály. */ public class JobTemplate extends AST { @@ -91,7 +91,7 @@ public class JobTemplate extends AST { this.useSessionLog = useSessionLog; } - //TODO foreach ellenorzes + // TODO foreach ellenorzes public List validate() throws Exception { Map parameters = new HashMap<>(); Map variables = new HashMap<>(); @@ -110,12 +110,13 @@ public class JobTemplate extends AST { if (commandSequence != null) { for (Command command : commandSequence.getCommands()) { if (command instanceof CallJobStepCommand) { - ParameterSequence inputParameterSequence = ((CallJobStepCommand) command).getInputParameterSequence(); + ParameterSequence inputParameterSequence = ((CallJobStepCommand) command) + .getInputParameterSequence(); if (inputParameterSequence != null) { for (Parameter parameter : inputParameterSequence.getParameters()) { if (!(parameter instanceof InputParameter)) - throw new Exception(((CallJobStepCommand) command).getType() + ": class cast problem with input parameter name " - + parameter.toString()); + throw new Exception(((CallJobStepCommand) command).getType() + + ": class cast problem with input parameter name " + parameter.toString()); Expression expression = ((InputParameter) parameter).getExpression(); if (expression instanceof VariableExpression) { @@ -128,12 +129,13 @@ public class JobTemplate extends AST { } } } - ParameterSequence outputParameterSequence = ((CallJobStepCommand) command).getOutputParameterSequence(); + ParameterSequence outputParameterSequence = ((CallJobStepCommand) command) + .getOutputParameterSequence(); if (outputParameterSequence != null) { for (Parameter parameter : outputParameterSequence.getParameters()) { if (!(parameter instanceof OutputParameter)) - throw new Exception(((CallJobStepCommand) command).getType() + ": class cast problem with output parameter name " - + parameter.toString()); + throw new Exception(((CallJobStepCommand) command).getType() + + ": class cast problem with output parameter name " + parameter.toString()); VariableName name = ((OutputParameter) parameter).getVariableName(); if (!inputvariables.contains(name.getName())) inputvariables.add(name.getName()); -- 2.54.0