Skip to content

Commit f6a8d10

Browse files
committed
Deprecate MultiResourceItemReader#getCurrentResource
Resolves #3776
1 parent 982ad7d commit f6a8d10

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2019 the original author or authors.
2+
* Copyright 2006-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -251,8 +251,11 @@ public void setResources(Resource[] resources) {
251251
* Getter for the current resource.
252252
* @return the current resource or {@code null} if all resources have been
253253
* processed or the first resource has not been assigned yet.
254+
*
255+
* @deprecated In favor of using {@link ResourceAware} instead.
254256
*/
255257
@Nullable
258+
@Deprecated
256259
public Resource getCurrentResource() {
257260
if (currentResource >= resources.length || currentResource < 0) {
258261
return null;

0 commit comments

Comments
 (0)