Skip to content

Commit

Permalink
Deprecate MetaDataInstanceFactory#createJobExecution
Browse files Browse the repository at this point in the history
This method accepts job parameters as a string, which can
cause parsing issues.

Resolves #4303
  • Loading branch information
fmbenhassine committed Feb 17, 2023
1 parent 523386e commit e4efa24
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -114,7 +114,10 @@ public static JobExecution createJobExecution(String jobName, Long instanceId, L
* @param executionId the id for the {@link JobExecution}
* @param jobParameters new line separated key=value pairs
* @return a {@link JobExecution}
* @deprecated use {{@link #createJobExecution(String, Long, Long, JobParameters)}}
* instead. Will be removed in v5.2
*/
@Deprecated(since = "5.0.1", forRemoval = true)
public static JobExecution createJobExecution(String jobName, Long instanceId, Long executionId,
String jobParameters) {
JobParameters params = new DefaultJobParametersConverter()
Expand Down

0 comments on commit e4efa24

Please sign in to comment.