From 6bd148cdf8f7468fbcd738d1d4305be1f014b69d Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Fri, 10 May 2024 11:58:34 +0200 Subject: [PATCH] Fix incorrect Javadoc in SimpleSystemProcessExitCodeMapper --- .../core/step/tasklet/SimpleSystemProcessExitCodeMapper.java | 5 +++-- .../step/tasklet/SimpleSystemProcessExitCodeMapperTests.java | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/SimpleSystemProcessExitCodeMapper.java b/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/SimpleSystemProcessExitCodeMapper.java index 1685914c1..55b5684f3 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/SimpleSystemProcessExitCodeMapper.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/SimpleSystemProcessExitCodeMapper.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,9 +22,10 @@ import org.springframework.batch.core.ExitStatus; * Simple {@link SystemProcessExitCodeMapper} implementation that performs following * mapping: *

- * 0 -> ExitStatus.FINISHED else -> ExitStatus.FAILED + * 0 -> ExitStatus.COMPLETED else -> ExitStatus.FAILED * * @author Robert Kasanicky + * @author Mahmoud Ben Hassine */ public class SimpleSystemProcessExitCodeMapper implements SystemProcessExitCodeMapper { diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/step/tasklet/SimpleSystemProcessExitCodeMapperTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/step/tasklet/SimpleSystemProcessExitCodeMapperTests.java index a6df66f12..bbd253f42 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/step/tasklet/SimpleSystemProcessExitCodeMapperTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/step/tasklet/SimpleSystemProcessExitCodeMapperTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2022 the original author or authors. + * Copyright 2008-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ class SimpleSystemProcessExitCodeMapperTests { private final SimpleSystemProcessExitCodeMapper mapper = new SimpleSystemProcessExitCodeMapper(); /** - * 0 -> ExitStatus.FINISHED else -> ExitStatus.FAILED + * 0 -> ExitStatus.COMPLETED else -> ExitStatus.FAILED */ @Test void testMapping() {