diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/PassthroughItemProcessor.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/PassthroughItemProcessor.java index 8c84f6a33..19d76c72e 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/PassthroughItemProcessor.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support/PassthroughItemProcessor.java @@ -3,11 +3,24 @@ package org.springframework.batch.item.support; import org.springframework.batch.item.ItemProcessor; /** + * Simple {@link ItemProcessor} that does nothing - simply passes its argument + * through to the caller. Useful as a default when the reader and writer in a + * business process deal with items of the same type, and no transformations are + * required. + * * @author Dave Syer - * + * */ public class PassthroughItemProcessor implements ItemProcessor { + + /** + * Just returns the item back to the caller. + * + * @return the item + * @see ItemProcessor#process(Object) + */ public T process(T item) throws Exception { return item; } + } \ No newline at end of file