Skip to content

Commit f72e0f4

Browse files
committed
Fix deprecation notes in ItemStreamSupport
Resolves #4238
1 parent f14b9a1 commit f72e0f4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ItemStreamSupport.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,36 +23,42 @@
2323
* @author Dave Syer
2424
* @author Dean de Bree
2525
* @author Mahmoud Ben Hassine
26-
* @deprecated since 5.0 in favor of using default methods in the {@link ItemStream}
27-
* interface. Scheduled for removal in 5.2.
2826
*
2927
*/
30-
@Deprecated(since = "5.0", forRemoval = true)
3128
public abstract class ItemStreamSupport implements ItemStream {
3229

3330
private final ExecutionContextUserSupport executionContextUserSupport = new ExecutionContextUserSupport();
3431

3532
/**
3633
* No-op.
3734
* @see org.springframework.batch.item.ItemStream#close()
35+
* @deprecated since 5.0 in favor of {@link ItemStream#close()}. Scheduled for removal
36+
* in 5.2.
3837
*/
38+
@Deprecated(since = "5.0", forRemoval = true)
3939
@Override
4040
public void close() {
4141
}
4242

4343
/**
4444
* No-op.
4545
* @see org.springframework.batch.item.ItemStream#open(ExecutionContext)
46+
* @deprecated since 5.0 in favor of {@link ItemStream#open(ExecutionContext)} ()}.
47+
* Scheduled for removal in 5.2.
4648
*/
4749
@Override
50+
@Deprecated(since = "5.0", forRemoval = true)
4851
public void open(ExecutionContext executionContext) {
4952
}
5053

5154
/**
5255
* Return empty {@link ExecutionContext}.
5356
* @see org.springframework.batch.item.ItemStream#update(ExecutionContext)
57+
* @deprecated since 5.0 in favor of {@link ItemStream#update(ExecutionContext)} ()}.
58+
* Scheduled for removal in 5.2.
5459
*/
5560
@Override
61+
@Deprecated(since = "5.0", forRemoval = true)
5662
public void update(ExecutionContext executionContext) {
5763
}
5864

0 commit comments

Comments
 (0)