Skip to content

Commit 88d76d8

Browse files
committed
Revert "Deprecate JobParametersConverter"
This reverts commit 2d22aa4.
1 parent 99f4482 commit 88d76d8

13 files changed

+16
-39
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/converter/AbstractDateTimeConverter.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023-2025 the original author or authors.
2+
* Copyright 2023 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,7 @@
2222
*
2323
* @author Mahmoud Ben Hassine
2424
* @since 5.0.1
25-
* @deprecated since 6.0 with no replacement, scheduled for removal in 6.2 or later.
2625
*/
27-
@Deprecated(since = "6.0", forRemoval = true)
2826
class AbstractDateTimeConverter {
2927

3028
protected DateTimeFormatter instantFormatter = DateTimeFormatter.ISO_INSTANT;

spring-batch-core/src/main/java/org/springframework/batch/core/converter/DateToStringConverter.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023-2025 the original author or authors.
2+
* Copyright 2023 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.
@@ -27,9 +27,7 @@
2727
*
2828
* @author Mahmoud Ben Hassine
2929
* @since 5.0.1
30-
* @deprecated since 6.0 with no replacement, scheduled for removal in 6.2 or later.
3130
*/
32-
@Deprecated(since = "6.0", forRemoval = true)
3331
public class DateToStringConverter extends AbstractDateTimeConverter implements Converter<Date, String> {
3432

3533
@Override

spring-batch-core/src/main/java/org/springframework/batch/core/converter/DefaultJobParametersConverter.java

Lines changed: 2 additions & 3 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-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.
@@ -70,9 +70,8 @@
7070
* @author Dave Syer
7171
* @author Michael Minella
7272
* @author Mahmoud Ben Hassine
73-
* @deprecated since 6.0 with no replacement, scheduled for removal in 6.2 or later.
73+
*
7474
*/
75-
@Deprecated(since = "6.0", forRemoval = true)
7675
public class DefaultJobParametersConverter implements JobParametersConverter {
7776

7877
protected ConfigurableConversionService conversionService;

spring-batch-core/src/main/java/org/springframework/batch/core/converter/JobParametersConversionException.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022-2025 the original author or authors.
2+
* Copyright 2022-2023 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.
@@ -20,9 +20,7 @@
2020
*
2121
* @author Mahmoud Ben Hassine
2222
* @since 5.0
23-
* @deprecated since 6.0 with no replacement, scheduled for removal in 6.2 or later.
2423
*/
25-
@Deprecated(since = "6.0", forRemoval = true)
2624
public class JobParametersConversionException extends RuntimeException {
2725

2826
/**

spring-batch-core/src/main/java/org/springframework/batch/core/converter/JobParametersConverter.java

Lines changed: 2 additions & 3 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-2022 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.
@@ -30,9 +30,8 @@
3030
* @author Dave Syer
3131
* @author Mahmoud Ben Hassine
3232
* @see JobParametersBuilder
33-
* @deprecated since 6.0 with no replacement, scheduled for removal in 6.2 or later.
33+
*
3434
*/
35-
@Deprecated(since = "6.0", forRemoval = true)
3635
public interface JobParametersConverter {
3736

3837
/**

spring-batch-core/src/main/java/org/springframework/batch/core/converter/JsonJobParametersConverter.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022-2025 the original author or authors.
2+
* Copyright 2022-2023 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.
@@ -63,9 +63,8 @@
6363
*
6464
* @author Mahmoud Ben Hassine
6565
* @since 5.0
66-
* @deprecated since 6.0 with no replacement, scheduled for removal in 6.2 or later.
66+
*
6767
*/
68-
@Deprecated(since = "6.0", forRemoval = true)
6968
public class JsonJobParametersConverter extends DefaultJobParametersConverter {
7069

7170
private final ObjectMapper objectMapper;

spring-batch-core/src/main/java/org/springframework/batch/core/converter/LocalDateTimeToStringConverter.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023-2025 the original author or authors.
2+
* Copyright 2023 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,9 +28,7 @@
2828
*
2929
* @author Mahmoud Ben Hassine
3030
* @since 5.0.1
31-
* @deprecated since 6.0 with no replacement, scheduled for removal in 6.2 or later.
3231
*/
33-
@Deprecated(since = "6.0", forRemoval = true)
3432
public class LocalDateTimeToStringConverter extends AbstractDateTimeConverter
3533
implements Converter<LocalDateTime, String> {
3634

spring-batch-core/src/main/java/org/springframework/batch/core/converter/LocalDateToStringConverter.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023-2025 the original author or authors.
2+
* Copyright 2023 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.
@@ -27,9 +27,7 @@
2727
*
2828
* @author Mahmoud Ben Hassine
2929
* @since 5.0.1
30-
* @deprecated since 6.0 with no replacement, scheduled for removal in 6.2 or later.
3130
*/
32-
@Deprecated(since = "6.0", forRemoval = true)
3331
public class LocalDateToStringConverter extends AbstractDateTimeConverter implements Converter<LocalDate, String> {
3432

3533
@Override

spring-batch-core/src/main/java/org/springframework/batch/core/converter/LocalTimeToStringConverter.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023-2025 the original author or authors.
2+
* Copyright 2023 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,9 +28,7 @@
2828
*
2929
* @author Mahmoud Ben Hassine
3030
* @since 5.0.1
31-
* @deprecated since 6.0 with no replacement, scheduled for removal in 6.2 or later.
3231
*/
33-
@Deprecated(since = "6.0", forRemoval = true)
3432
public class LocalTimeToStringConverter extends AbstractDateTimeConverter implements Converter<LocalTime, String> {
3533

3634
@Override

spring-batch-core/src/main/java/org/springframework/batch/core/converter/StringToDateConverter.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023-2025 the original author or authors.
2+
* Copyright 2023 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,9 +28,7 @@
2828
*
2929
* @author Mahmoud Ben Hassine
3030
* @since 5.0.1
31-
* @deprecated since 6.0 with no replacement, scheduled for removal in 6.2 or later.
3231
*/
33-
@Deprecated(since = "6.0", forRemoval = true)
3432
public class StringToDateConverter extends AbstractDateTimeConverter implements Converter<String, Date> {
3533

3634
@Override

0 commit comments

Comments
 (0)