From 87e69f3e87c9b3200845fb61e490ac24cc98760e Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Wed, 12 Oct 2022 18:51:08 +0200 Subject: [PATCH] Deprecate Classifier This annotation is not used or introspected by production code. --- .../springframework/batch/support/annotation/Classifier.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/support/annotation/Classifier.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/support/annotation/Classifier.java index efda2b849..03bebcd40 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/support/annotation/Classifier.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/support/annotation/Classifier.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2007 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. @@ -27,12 +27,15 @@ import java.lang.annotation.Target; * only be used on non-void methods with one parameter. * * @author Dave Syer + * @author Mahmoud Ben Hassine + * @deprecated since 5.0 with no replacement. Scheduled for removal in 5.2. * */ @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) @Inherited @Documented +@Deprecated(since = "5.0", forRemoval = true) public @interface Classifier { }