Skip to content

Commit

Permalink
[JBPM-10174] Sonar warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado committed Jun 1, 2023
1 parent d25686b commit 216abe4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public ProcessInstance createProcessInstance(Process process, CorrelationKey cor
throw new IllegalArgumentException( "This process does not support parameters!" );
}
}
variableScopeInstance.setDefaultValue(process,variableScope,variableScopeInstance);
variableScopeInstance.setDefaultValues(variableScope, variableScopeInstance);
variableScopeInstance.enforceRequiredVariables();

return processInstance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ private boolean hasData(Object data) {
return data != null && (!(data instanceof CharSequence) || !data.toString().trim().isEmpty());
}

public void setDefaultValue(Process process,VariableScope variableScope,VariableScopeInstance variableScopeInstance) {
public void setDefaultValue(VariableScope variableScope, VariableScopeInstance variableScopeInstance) {
if (variableScope != null) {
for (Variable variable : variableScope.getVariables()) {
String name = variable.getName();
Expand All @@ -220,5 +220,5 @@ public void setDefaultValue(Process process,VariableScope variableScope,Variable
}
}
}
}
}
}

0 comments on commit 216abe4

Please sign in to comment.