Skip to content

Commit 6bd148c

Browse files
committed
Fix incorrect Javadoc in SimpleSystemProcessExitCodeMapper
1 parent 75abf15 commit 6bd148c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/SimpleSystemProcessExitCodeMapper.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2023 the original author or authors.
2+
* Copyright 2006-2024 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.
@@ -22,9 +22,10 @@
2222
* Simple {@link SystemProcessExitCodeMapper} implementation that performs following
2323
* mapping:
2424
* <p>
25-
* 0 -&gt; ExitStatus.FINISHED else -&gt; ExitStatus.FAILED
25+
* 0 -&gt; ExitStatus.COMPLETED else -&gt; ExitStatus.FAILED
2626
*
2727
* @author Robert Kasanicky
28+
* @author Mahmoud Ben Hassine
2829
*/
2930
public class SimpleSystemProcessExitCodeMapper implements SystemProcessExitCodeMapper {
3031

spring-batch-core/src/test/java/org/springframework/batch/core/step/tasklet/SimpleSystemProcessExitCodeMapperTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2008-2022 the original author or authors.
2+
* Copyright 2008-2024 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.
@@ -28,7 +28,7 @@ class SimpleSystemProcessExitCodeMapperTests {
2828
private final SimpleSystemProcessExitCodeMapper mapper = new SimpleSystemProcessExitCodeMapper();
2929

3030
/**
31-
* 0 -> ExitStatus.FINISHED else -> ExitStatus.FAILED
31+
* 0 -> ExitStatus.COMPLETED else -> ExitStatus.FAILED
3232
*/
3333
@Test
3434
void testMapping() {

0 commit comments

Comments
 (0)