From 0eac8f0c6f92337f1a8a81ef2ab84e94132a9cf7 Mon Sep 17 00:00:00 2001 From: robokaso Date: Mon, 7 Apr 2008 08:07:27 +0000 Subject: [PATCH] RESOLVED - BATCH-561: ItemReaderAdapter still implements unnecessary close method removed the redundant close method + added javadoc to no-op mark and reset --- .../batch/item/adapter/ItemReaderAdapter.java | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/adapter/ItemReaderAdapter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/adapter/ItemReaderAdapter.java index 5ad110967..491a63fd6 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/adapter/ItemReaderAdapter.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/adapter/ItemReaderAdapter.java @@ -16,9 +16,7 @@ package org.springframework.batch.item.adapter; -import org.springframework.batch.item.ExecutionContext; import org.springframework.batch.item.ItemReader; -import org.springframework.batch.item.ItemStreamException; import org.springframework.batch.item.MarkFailedException; import org.springframework.batch.item.ResetFailedException; @@ -38,17 +36,14 @@ public class ItemReaderAdapter extends AbstractMethodInvokingDelegator implement } /** - * Do nothing. - * - * @see org.springframework.batch.item.ItemReader#close(ExecutionContext) + * No-op. */ - public void close() throws ItemStreamException { - - } - public void mark() throws MarkFailedException { } + /** + * No-op. + */ public void reset() throws ResetFailedException { } }