Fix deprecation notes in ItemStreamSupport

Resolves #4238
This commit is contained in:
Mahmoud Ben Hassine
2022-11-22 16:54:01 +01:00
parent f14b9a10ef
commit f72e0f4d16

View File

@@ -23,11 +23,8 @@ import org.springframework.batch.item.util.ExecutionContextUserSupport;
* @author Dave Syer
* @author Dean de Bree
* @author Mahmoud Ben Hassine
* @deprecated since 5.0 in favor of using default methods in the {@link ItemStream}
* interface. Scheduled for removal in 5.2.
*
*/
@Deprecated(since = "5.0", forRemoval = true)
public abstract class ItemStreamSupport implements ItemStream {
private final ExecutionContextUserSupport executionContextUserSupport = new ExecutionContextUserSupport();
@@ -35,7 +32,10 @@ public abstract class ItemStreamSupport implements ItemStream {
/**
* No-op.
* @see org.springframework.batch.item.ItemStream#close()
* @deprecated since 5.0 in favor of {@link ItemStream#close()}. Scheduled for removal
* in 5.2.
*/
@Deprecated(since = "5.0", forRemoval = true)
@Override
public void close() {
}
@@ -43,16 +43,22 @@ public abstract class ItemStreamSupport implements ItemStream {
/**
* No-op.
* @see org.springframework.batch.item.ItemStream#open(ExecutionContext)
* @deprecated since 5.0 in favor of {@link ItemStream#open(ExecutionContext)} ()}.
* Scheduled for removal in 5.2.
*/
@Override
@Deprecated(since = "5.0", forRemoval = true)
public void open(ExecutionContext executionContext) {
}
/**
* Return empty {@link ExecutionContext}.
* @see org.springframework.batch.item.ItemStream#update(ExecutionContext)
* @deprecated since 5.0 in favor of {@link ItemStream#update(ExecutionContext)} ()}.
* Scheduled for removal in 5.2.
*/
@Override
@Deprecated(since = "5.0", forRemoval = true)
public void update(ExecutionContext executionContext) {
}