From f72e0f4d16fc2730d66d7fe7f5f72e9705bc4a88 Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Tue, 22 Nov 2022 16:54:01 +0100 Subject: [PATCH] Fix deprecation notes in ItemStreamSupport Resolves #4238 --- .../batch/item/ItemStreamSupport.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ItemStreamSupport.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ItemStreamSupport.java index 89ee8ead1..4313c592a 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ItemStreamSupport.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ItemStreamSupport.java @@ -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) { }