Fix incorrect Javadoc in SimpleSystemProcessExitCodeMapper

This commit is contained in:
Mahmoud Ben Hassine
2024-05-10 11:58:34 +02:00
parent 75abf1587f
commit 6bd148cdf8
2 changed files with 5 additions and 4 deletions

View File

@@ -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:
* <p>
* 0 -&gt; ExitStatus.FINISHED else -&gt; ExitStatus.FAILED
* 0 -&gt; ExitStatus.COMPLETED else -&gt; ExitStatus.FAILED
*
* @author Robert Kasanicky
* @author Mahmoud Ben Hassine
*/
public class SimpleSystemProcessExitCodeMapper implements SystemProcessExitCodeMapper {

View File

@@ -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() {