From 157d7a3a20c2a1e76bbc4fef6d4df40b46d0ee28 Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Wed, 12 Oct 2022 18:55:46 +0200 Subject: [PATCH] Deprecate ItemStreamSupport in favor of using default methods in the ItemStream interface --- .../org/springframework/batch/item/ItemStreamSupport.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 0dd663b20..89ee8ead1 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 @@ -1,5 +1,5 @@ /* - * Copyright 2006-2013 the original author or authors. + * Copyright 2006-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,8 +22,12 @@ 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();