File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
spring-batch-infrastructure/src/main/java/org/springframework/batch/item Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .batch .item ;
18
18
19
+ import org .springframework .lang .NonNull ;
19
20
import org .springframework .lang .Nullable ;
20
21
21
22
/**
@@ -36,12 +37,13 @@ public interface ItemProcessor<I, O> {
36
37
* processing. If the returned result is null, it is assumed that processing of the item
37
38
* should not continue.
38
39
*
39
- * @param item to be processed
40
+ * @param item to be processed. A {@code null} will never reach this method because the only possible sources
41
+ * are ItemReader (which indicates no more items) and ItemProcessor (which indicates a filtered item).
40
42
* @return potentially modified or new item for continued processing, {@code null} if processing of the
41
43
* provided item should not continue.
42
44
*
43
45
* @throws Exception thrown if exception occurs during processing.
44
46
*/
45
47
@ Nullable
46
- O process (I item ) throws Exception ;
48
+ O process (@ NonNull I item ) throws Exception ;
47
49
}
You can’t perform that action at this time.
0 commit comments