Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2d22aa4

Browse files
Deprecate JobParametersConverter
Resolves #4894
1 parent e4dfd12 commit 2d22aa4

16 files changed

+58
-18
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 the original author or authors.
2+
* Copyright 2023-2025 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,7 +22,9 @@
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.
2526
*/
27+
@Deprecated(since = "6.0", forRemoval = true)
2628
class AbstractDateTimeConverter {
2729

2830
protected DateTimeFormatter instantFormatter = DateTimeFormatter.ISO_INSTANT;

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 the original author or authors.
2+
* Copyright 2023-2025 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,7 +27,9 @@
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.
3031
*/
32+
@Deprecated(since = "6.0", forRemoval = true)
3133
public class DateToStringConverter extends AbstractDateTimeConverter implements Converter<Date, String> {
3234

3335
@Override

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2024 the original author or authors.
2+
* Copyright 2006-2025 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,8 +70,9 @@
7070
* @author Dave Syer
7171
* @author Michael Minella
7272
* @author Mahmoud Ben Hassine
73-
*
73+
* @deprecated since 6.0 with no replacement, scheduled for removal in 6.2 or later.
7474
*/
75+
@Deprecated(since = "6.0", forRemoval = true)
7576
public class DefaultJobParametersConverter implements JobParametersConverter {
7677

7778
protected ConfigurableConversionService conversionService;

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022-2023 the original author or authors.
2+
* Copyright 2022-2025 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,7 +20,9 @@
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.
2324
*/
25+
@Deprecated(since = "6.0", forRemoval = true)
2426
public class JobParametersConversionException extends RuntimeException {
2527

2628
/**

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2025 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,8 +30,9 @@
3030
* @author Dave Syer
3131
* @author Mahmoud Ben Hassine
3232
* @see JobParametersBuilder
33-
*
33+
* @deprecated since 6.0 with no replacement, scheduled for removal in 6.2 or later.
3434
*/
35+
@Deprecated(since = "6.0", forRemoval = true)
3536
public interface JobParametersConverter {
3637

3738
/**

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

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

7071
private final ObjectMapper objectMapper;

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 the original author or authors.
2+
* Copyright 2023-2025 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,9 @@
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.
3132
*/
33+
@Deprecated(since = "6.0", forRemoval = true)
3234
public class LocalDateTimeToStringConverter extends AbstractDateTimeConverter
3335
implements Converter<LocalDateTime, String> {
3436

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 the original author or authors.
2+
* Copyright 2023-2025 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,7 +27,9 @@
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.
3031
*/
32+
@Deprecated(since = "6.0", forRemoval = true)
3133
public class LocalDateToStringConverter extends AbstractDateTimeConverter implements Converter<LocalDate, String> {
3234

3335
@Override

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 the original author or authors.
2+
* Copyright 2023-2025 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,9 @@
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.
3132
*/
33+
@Deprecated(since = "6.0", forRemoval = true)
3234
public class LocalTimeToStringConverter extends AbstractDateTimeConverter implements Converter<LocalTime, String> {
3335

3436
@Override

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 the original author or authors.
2+
* Copyright 2023-2025 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,9 @@
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.
3132
*/
33+
@Deprecated(since = "6.0", forRemoval = true)
3234
public class StringToDateConverter extends AbstractDateTimeConverter implements Converter<String, Date> {
3335

3436
@Override

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /