From db1aa8f970232f1eb914870d5801d7b0317e26c8 Mon Sep 17 00:00:00 2001 From: HJC96 Date: Tue, 21 Oct 2025 22:56:14 +0900 Subject: [PATCH] Fix javadoc for getJobNames() method Clarify that the method returns job names (not job instances) for all jobs that have at least one job instance in the repository. Resolves FIXME comment about ambiguous javadoc description. Signed-off-by: HJC96 --- .../batch/core/repository/dao/JobInstanceDao.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/JobInstanceDao.java b/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/JobInstanceDao.java index 24159acc67..004890f305 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/JobInstanceDao.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/JobInstanceDao.java @@ -125,11 +125,9 @@ default List getJobInstanceIds(String jobName) { } /** - * Retrieve the names of all job instances sorted alphabetically - i.e. jobs that have - * ever been executed. - * @return the names of all job instances + * Retrieve the names of all jobs for which job instances exist, sorted alphabetically. + * @return the names of all jobs with job instances */ - // FIXME javadoc: i.e. jobs that have * ever been executed ? List getJobNames(); /**