Skip to content

Commit b532589

Browse files
yunhobbfmbenhassine
authored andcommitted
Fix incorrect javadoc references in JobContext
JobContext was created by copying StepContext (as noted in the @author tag), but the javadoc for close() and getId() was not updated to reflect the job execution context. This commit fixes the references from "step execution" to "job execution" and from StepScope to JobScope. Signed-off-by: Yunho Jung <a01049048063@gmail.com>
1 parent c81dc00 commit b532589

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • spring-batch-core/src/main/java/org/springframework/batch/core/scope/context

spring-batch-core/src/main/java/org/springframework/batch/core/scope/context/JobContext.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2025 the original author or authors.
2+
* Copyright 2006-2026 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -32,7 +32,7 @@
3232
import org.springframework.batch.core.job.parameters.JobParameter;
3333
import org.springframework.batch.core.job.parameters.JobParameters;
3434
import org.springframework.batch.core.job.UnexpectedJobExecutionException;
35-
import org.springframework.batch.core.scope.StepScope;
35+
import org.springframework.batch.core.scope.JobScope;
3636
import org.springframework.batch.infrastructure.item.ExecutionContext;
3737
import org.springframework.batch.infrastructure.repeat.context.SynchronizedAttributeAccessor;
3838
import org.springframework.util.Assert;
@@ -128,9 +128,9 @@ private void unregisterDestructionCallbacks(String name) {
128128
}
129129

130130
/**
131-
* Clean up the context at the end of a step execution. Must be called once at the end
132-
* of a step execution to honour the destruction callback contract from the
133-
* {@link StepScope}.
131+
* Clean up the context at the end of a job execution. Must be called once at the end
132+
* of a job execution to honour the destruction callback contract from the
133+
* {@link JobScope}.
134134
*/
135135
public void close() {
136136

@@ -179,7 +179,7 @@ public JobExecution getJobExecution() {
179179
}
180180

181181
/**
182-
* @return unique identifier for this context based on the step execution
182+
* @return unique identifier for this context based on the job execution
183183
*/
184184
public String getId() {
185185
return "jobExecution#" + jobExecution.getId();

0 commit comments

Comments
 (0)